• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 14. Building Style Sheets and Dy... > Specifying Multiple Fonts in Externa...

Specifying Multiple Fonts in External Style Sheets

Being able to specify multiple fonts in your styles is one of the best reasons for using external style sheets. In effect, you’re telling the visitor’s Web browser to use Font A and, if it can’t find that on the visitor’s computer, then use Font B, and if Font B’s not present, then use Font C, and so on. That way if your Web visitor doesn’t have the oh-so-cool font you’ve specified, at least they can see it in a font that is roughly similar.

For example, if your first-choice font family for H1 headings is a classic Oldstyle face, such as Bembo, then you’ll want to specify similar looking but perhaps more common serif faces, such as Garamond and Caslon, as the second- and third-choice font families. As a backup plan for site visitors who have very few fonts on their computers, you also can include generic font family specifications so that their Web browsers will at least use a serif face. For a list of the most common font families found on computers, see Table 14.1. For a list of CSS’s generic font specifications, see Table 14.2.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint