Setting All Font Values at Once

You can set the font style, weight, variant, size, line height, and family all at once.

To set all font values at once:

1.
Type font:.
2.
If desired, type normal, oblique, or italic to set the font style (see page 154).
Figure 10.21. This style sheet is equivalent to the one shown in Figure 10.19 on page 158. I’ve simply consolidated the font properties for the h1, h2 and p rules. Note that I don’t have to specify that the font-weight be normal for h1, h2, since normal is the default for the font property.

3.
If desired, type normal, bold, bolder, lighter, or a multiple of 100 (up to 900) to set the font weight ...

Get HTML, XHTML, & CSS, Sixth Edition: Visual QuickStart Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.