A user agent will use the first family
that??™s available. Since there??™s no
guarantee that any particular font will
be available, a generic family name
should always be the last value in the
list.
Note that it??™s meaningless to list any
font family names after a valid generic
family name, since the latter will always
match an available font.
Example
This style rule sets the list of font families
to be used for the root element, and,
through inheritance, all elements in a given
HTML document (unless overridden). If
Helvetica isn??™t available, the user agent will
try Arial. If Arial isn??™t available, Luxi Sans
will be tried. If none of the font families
are available, the user agent will resort to
its default sans-serif font family:
html {
font-family: Helvetica, Arial,
??? "Luxi Sans", sans-serif;
}
While an element??™s font-family value will be inherited if it??™s not explicitly
specified, if it is specified, and none of the specified font families match an available
font (this case only arises if the list doesn??™t include a generic family name), the
resulting property value will default to the user agent??™s initial value (p.
Pages:
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474