Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
|
I guess you are talking about the "font-family" declaration, which is the only one that takes multiple fonts as arguments.
The reason we need font-family is that not all operating systems or browsers support all fonts, so we make a list of various fonts to fall back on if the first in the list are not supported.
So, a declaration like this:
CSS
Code:
font-family: "Courier New", Courier, monospace;
means that the first font to be considered will be "Courier New", followed by "Courier", then defaulting to "monospace". Note that any time a font is composed of two or more words, it must have quotes around it.
|