Some properties are inherited
by default??”see the CSS properties and values table for more information.
Value Formats
color Color name. See Appendix B (Color Reference) for information on
available CSS color names.
rgb(n,n,n): Where n is a value from 0 to 255 or a percentage.
#rrggbb: Hexadecimal color format (preferred).
length An optional sign (+ or -), followed by a number and one of the following
units (there should be no whitespace between the number and
unit):
%: A percentage.
cm: Centimeters.
em: One em is equal to the font size of the parent or current element
(see following focus point for elaboration).
ex: One ex is, in theory, equal to the font size of the x character of
the current element. Most browsers render ex as half an em.
in: Inches.
mm: Millimeters.
pc: Picas. 1pc = 12pt.
pt: Points. 1pt = 1/72in.
px: Pixels.
For zero values, the unit identifier may be omitted. Generally, px, em,
and % are the best units for screen design, and pt is best for print fonts.
number An optional sign (+ or -) followed by a number.
percentage An optional sign (+ or -) followed by a number, immediately followed
by the percentage symbol.
url The word url immediately followed by parentheses, within which is
placed a URL. The URL can optionally be enclosed in single or double
quotes.
Internet Explorer 5.x for Windows gets the box model wrong, placing padding and
borders inside the defined dimensions of an element.
Pages:
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558