B.37. font

A shorthand property that allows you to set many font properties of an element with a single property declaration. With this one property, you can set the values of Section B.42font-style, Section B.43font-variant, Section B.44font-weight, Section B.39font-size, Section B.58line-height, and Section B.38font-family.

Unless you use one of the CSS2 constants (described below), you must specify a font-size and font-family. All the other properties are optional, and will be reset to their initial values if they are not specified (overriding any previous declarations of equal or lesser precedence for their values). The properties Section B.41font-stretch and Section B.40font-size-adjust are also reset to their default values by this property, ...

Get HTML Utopia: Designing Without Tables Using CSS 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.