Description

Shorthand statement to set multiple font attributes.
font-style, font-variant and font-weight must come before font-size and font-family and are optional.
line-height is optional and must come after font-size and /.
font-size and font-family are required.

See Also

  • Font family
  • Font size
  • Line height
  • Font style
  • Font variant
  • Font weight
  • Color
Live Example
Play with the code in the textarea below.

Values
font-style font-variant font-weight/line-height font-size font-family
Introduced in CSS version
1
Applies to elements
All
Inherited
Yes
Browser Support
BrowsersIEFirefoxSafariOperaChrome
Versions51160.2
Belongs to:

See the full list CSS properties and browser support: CSS Properties