CSS Properties

User Guide / CSS Properties

font

Syntax

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

Initial Value

font: 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-style
font-weight
line-height