CSS Properties

User Guide / CSS Reference / CSS Properties

font

Syntax

font: font-style? font-variant? font-weight? font-size [ / line-height ]? font-family

Default

12pt serif

Examples

font: bold 14pt/16pt Georgia, "Times New Roman", serif

Inherited

Yes

Comments

The font property is a shorthand for setting the following CSS properties:

font-family
font-size
font-stretch
font-style
font-variant
font-weight
line-height