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, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access