It??™s always good practice to set a
background-color, as we set color to
ensure that conflicts don??™t arise between these values and any previous declarations
or styles contained within user style sheets.
Example
This style rule sets the color red for text
within the element with ID "example" :
#example {
color: red;
}
Value
color takes any valid CSS color value (p. 33). The initial value for this property
depends on the user agent.
Compatibility
SPEC
version initial inherited
CSS1, 2.1 see below YES
BROWSER SUPPORT
Op9.2+ Saf1.3+ FF1+ IE5.5+
FULL FULL FULL FULL
Color and Backgrounds
Opera Safari Firefox Internet Explorer
9.2 3.0 2.0 1.3 2.0 1.5 1.0 7.0 6.0 5.5
Full Full Full Full Full Full Full Full Full Full
Internet Explorer for Windows versions up to and including 7 don??™t support the
value inherit.
Chapter 12
Typographical Properties
Typographical properties allow the author to customize the presentation and layout
of textual content.
Typographical Properties
The Ultimate CSS Reference 318
font-family
font-family: { family name,??¦ | inherit } ;
The property font-family sets a
prioritized list of font family names
and/or generic family names to be used
to display a given element??™s text
content.
Pages:
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473