Cascading Style Sheets describe the appearance of structured documents, usually written in HTML. The current standard for CSS is level 2 revision 1 (CSS 2.1) which is officially documented by the W3C in the Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification. CSS 3 is the new emerging standard. A good web site to follow what is going on with CSS 3 is www.css3.info.
Property | Values | Used with Elements |
---|---|---|
color | #RRGGBB (Red, Green, Blue hex values) | any element that contains text |
text-align | left | right | center | justify | block elements h1..h6, p, li, etc. |
text-decoration | none | underline | overline | line-through | blink | inherit | mostly with a (anchor) elements |
text-transformation | none | capitalize | uppercase | lowercase | any element that contains text |
line-height | % or px | block elements h1..h6, p, li, etc. |
letter-spacing | normal or px value | any element that contains text |
font-family | font or font-family [, font or font-family ...] | any element that contains text |
font-size | px or em value | any element that contains text |
font-style | normal | italic | oblique | any element that contains text |
font-weight | normal | bold | any element that contains text |
background-color | #RRGGBB (Red, Green, Blue hex values) | any element with a background |
background-image | url("[image url]") | mostly with body |
background-repeat | repeat | repeat-x | repeat-y | no-repeat | mostly with body |
background-position | left | center | right | top | center | bottom | mostly with body |
list-style-type | disc | square | circle | ul |
list-style-type | decimal | lower-roman | upper-roman | lower-alpha | upper-alpha | ol |