Återskapa priset endast medhjälp av css?

Visa första olästa
Ämnesverktyg
Visa huvudforum
Visningsalternativ
Oläst 2015-05-05, 11:24 #1
naak2803naak2803 är inte uppkopplad
Mycket flitig postare
Reg.datum: Jun 2011
Inlägg: 767
Standard Återskapa priset endast medhjälp av css?

Hej,
Jag skulle behöva återskapa priset endast medhjälp av css, någon som kan hjälpa till?

dvs det ska två antal kronor på vänster sedan ska det så antal ören till höger men något upphöjt och under ören ska det står en liten text.

http://bunnpris.no/media/bannere-forside/2015/uke-16-17/banner-liten-520x353-uke-17-apning-freia.jpg?mode=crop&width=349&height=237
naak2803 är inte uppkopplad
Oläst 2015-05-05, 11:27 #2
KnockoutKnockout är inte uppkopplad
Nykomling
Reg.datum: Aug 2014
Inlägg: 12
Finns det någon färdig HTML struktur?
Knockout är inte uppkopplad
Oläst 2015-05-05, 11:30 #3
naak2803naak2803 är inte uppkopplad
Mycket flitig postare
Reg.datum: Jun 2011
Inlägg: 767
Citat:
Ursprungligen postat av Knockout Visa inlägg
Finns det någon färdig HTML struktur?


nej, jag är endast ute efter priset i css/html...
naak2803 är inte uppkopplad
Oläst 2015-05-05, 12:19 #4
allstarsallstars är inte uppkopplad
Klarade millennium-buggen
Reg.datum: Apr 2006
Inlägg: 2 126
på denna sida hittade jag lite tips: http://codepen.io/pixelass/pen/gbGZYL

vilket ledde fram till detta:
CODE
<style>
	.price {
		display:inline-block;
	   -webkit-text-stroke: 1px black;
		font-style:italic;
	   padding-right:1em;
	   font-size:80px;
	   font-family:sans-serif;
	   font-weight:800;
	   position:relative;
	   text-shadow: -4px -4px 0 yellow, 
	   -4px -3px 0 yellow, -4px -2px 0 yellow, -4px -1px 0 yellow, -4px 0px 0 yellow, -4px 1px 0 yellow, -4px 2px 0 yellow, -4px 3px 0 yellow, -4px 4px 0 yellow, -3px -4px 0 yellow, -3px -3px 0 yellow, -3px -2px 0 yellow, -3px -1px 0 yellow, -3px 0px 0 yellow, -3px 1px 0 yellow, -3px 2px 0 yellow, -3px 3px 0 yellow, -3px 4px 0 yellow, -2px -4px 0 yellow, -2px -3px 0 yellow, -2px -2px 0 yellow, -2px -1px 0 yellow, -2px 0px 0 yellow, -2px 1px 0 yellow, -2px 2px 0 yellow, -2px 3px 0 yellow, -2px 4px 0 yellow, -1px -4px 0 yellow, -1px -3px 0 yellow, -1px -2px 0 yellow, -1px -1px 0 yellow, -1px 0px 0 yellow, -1px 1px 0 yellow, -1px 2px 0 yellow, -1px 3px 0 yellow, -1px 4px 0 yellow, 0px -4px 0 yellow, 0px -3px 0 yellow, 0px -2px 0 yellow, 0px -1px 0 yellow, 0px 0px 0 yellow, 0px 1px 0 yellow, 0px 2px 0 yellow, 0px 3px 0 yellow, 0px 4px 0 yellow, 1px -4px 0 yellow, 1px -3px 0 yellow, 1px -2px 0 yellow, 1px -1px 0 yellow, 1px 0px 0 yellow, 1px 1px 0 yellow, 1px 2px 0 yellow, 1px 3px 0 yellow, 1px 4px 0 yellow, 2px -4px 0 yellow, 2px -3px 0 yellow, 2px -2px 0 yellow, 2px -1px 0 yellow, 2px 0px 0 yellow, 2px 1px 0 yellow, 2px 2px 0 yellow, 2px 3px 0 yellow, 2px 4px 0 yellow, 3px -4px 0 yellow, 3px -3px 0 yellow, 3px -2px 0 yellow, 3px -1px 0 yellow, 3px 0px 0 yellow, 3px 1px 0 yellow, 3px 2px 0 yellow, 3px 3px 0 yellow, 3px 4px 0 yellow, 4px -4px 0 yellow, 4px -3px 0 yellow, 4px -2px 0 yellow, 4px -1px 0 yellow, 4px 0px 0 yellow, 4px 1px 0 yellow, 4px 2px 0 yellow, 4px 3px 0 yellow, 4px 4px 0 yellow,
	   3px 3px 8px black; /*detta är för skuggan*/
  color: #black;

	}
	.price sup {font-size:.6em;position:absolute;top:.2em;right:.8em}
	.price sub {font-size:.4em;position:absolute;top:1.8em;right:.2em}
	</style>

        <p class="price">29<sup>90</sup><sub>pr.stk</sub></p>
	<p class="price">199<sup>90</sup><sub>pr.stk</sub></p>
	<p class="price">200<sup>00</sup><sub>pr.stk</sub></p>


Vilket blev detta resultatet (i IE)


Det blir lite pill för att få till det i alla webbläsare dock.
allstars är inte uppkopplad
Oläst 2015-05-05, 13:21 #5
naak2803naak2803 är inte uppkopplad
Mycket flitig postare
Reg.datum: Jun 2011
Inlägg: 767
tackar! det där var perfekt.
naak2803 är inte uppkopplad
Aktiva användare som för närvarande tittar på det här ämnet: 0 (0 medlemmar och 0 gäster)