May 2003
Intermediate to advanced
480 pages
10h 9m
English
This shorthand property allows you to set multiple font-related properties in one CSS style rule.
As with other CSS shorthand properties we've seen, values are separated from one another by spaces, with commas used in multiple-property situations such as the font-family. Here's an example of a reasonably complex font description in CSS:
h3 {
font: bolder small-caps 22px Arial, "Lucida Console", sans-serif;
}
Notice that the font size (22px) and the font-family list are included in the definition of the style in sequence at the end of the list of properties. You must always include at least the font-size and the font-family property values, in that order, as the final or only values in the font shorthand property. ...
Read now
Unlock full access