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...
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.