Appendix C. Cascading Style Sheet Properties Quick Reference
In the following table, we list, in alphabetical order, all the
properties defined in the World Wide Web Consortium's (W3C's) Recommended
Specification for Cascading Style Sheets (CSS), Level 2 (http://www.w3.org/pub/WWW/TR/REC-CSS2). We include each
property's possible values, defined as either an explicit keyword (shown
in constant width) or as one of these
values:
- angle
A numeric value followed by
deg,grad, orrad.- color
Either a color name or hexadecimal RGB value, as defined in Appendix G, or an RGB triple of the form:
rgb(
red,green,blue)where
red,green, andblueare either numbers in the range 0 to 255 or percentage values indicating the brightness of that color component. Values of255or100%indicate that the corresponding color component is at its brightest; values of0or0%indicate that the corresponding color component is turned off completely. For example:rgb(27, 119, 207) rgb(50%, 75%, 0%)
are both valid color specifications.
- frequency
A numeric value followed by
hzorkhz, indicating hertz or kilohertz.- length
An optional sign (either + or -), immediately followed by a number (with or without a decimal point), immediately followed by a two-character unit identifier. For values of
0, the unit identifier may be omitted.The unit identifiers
emandexrefer to the overall height of the font and to the height of the letter "x," respectively. The unit identifierpxis equal to a single pixel on the display device. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access