CSS referens

CSS Text/font format

colorcolorname, #rgb, rgb(r,g,b) t.ex blue, #00FF80, rgb(0,255,128), rgb(0%,25%,50%)
directionrtl | ltr
fontkomb. en eller flera av nedan efter [weight] [style] [variant] size font. tex p{font:bold 12pt Verdana Ariel}{1.2em/1.4}
font-sizen%, nem, npt… xx-small, x-small, small, medium, large, x-large,xx-large,smaller,larger
font-familyfont1, font2,… (finns font1 väljs den före de andra) t.ex {font-family:Verdana, Ariel, sans-serif}
befintliga familjer : -serif, sans-serif, monospace, fantasy, cursive;
font-weightbold, bolder, lighter, normal, 100, 200,…,900 (i praktiken bara bold och normal)
font-styleitalic | oblique | normal
font-variantnormal | small-caps
text-indentnpt, npx nmm...
text-decorationunderline, overline, line-through, blink, none
text-transformcapitalize, uppercase, lowercase, none
text-alignleft, right, center, justify
vertical-alignn, m%, top, middle, bottom, baseline, sub, super, text-top, text-bottom
letter-spacingnormal, inherit, n%, npx, npt, nmm...
word-spacingnormal, in%, npx, npt, nmm...
Tillbaka