August 1999
Intermediate to advanced
1488 pages
72h 53m
English
document.classes.className.tagName.fontFamily
The fontFamily property specifies the font an element should use when associated with the class called className. The definition can also specify a tag or the word all for tagName. More than one font can be specified, in case a particular font has not been loaded.
Listing 7.73 uses the fontFamily property to create text with an Arial font. If that font is not available, Helvetica is used.
<html> <script> <!-- Hide //Create a style sheet class that defines a font document.classes.F.all.fontFamily = "Arial,Helvetica"; //Hide End ---> </script> <p class=F>Do you like this ... |
Read now
Unlock full access