Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


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

9. Styling with Fonts and Colors: Expand... > Test driving Tony’s new fonts

Test driving Tony’s new fonts

Open the page with the new CSS in the browser and you should see we’ve now got a nice set of sans-serif fonts. Let’s check out the changes...

image with no caption

There are no Dumb Questions

Q:

Q: How do I specify a font with multiple words in the name, like Courier New?

A:

A: Just put double quotes around the name in your font- family declaration, like this: font-family: “Courier New”, Courier;

Q:

Q: So the font-family property is really a set of alternative fonts?

A:

A: Yes. It’s basically a priority list of fonts. The first is the font you’d like used, followed by a good substitute, followed by more substitutes, and so on. For the last font, you should specify the catch-all generic “sans-serif” or “serif”, which should be in the same family as all the fonts in your list.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial