CSS HTML Validator - The fast, all-in-one, HTML, CSS, Link, SEO, spelling, and accessibility checker for Windows, & htmlval for Mac and Linux
Home Help: "font" CSS property

The "font" CSS Property

Shorthand

This shorthand property sets 'font-style', 'font-variant', 'font-weight', 'font-stretch', 'font-size', 'line-height', and 'font-family' at the same place in the style sheet.

Values for "font"
CSS LevelValue
CSS Fonts Level 4"[ [ <'font-style'> || <font-variant-css2> || <'font-weight'> || <font-stretch-css3> ]? <'font-size'> [ / <'line-height'> ]? <'font-family'> ] | caption | icon | menu | message-box | small-caption | status-bar"

Notes

  • All font-related properties are first reset to their initial values, including 'font-stretch' and 'font-size-adjust'. Then, those properties that are given explicit values in the 'font' shorthand are set to those values.

Recommended Links

Accessibility Information & Tips

Search Engine Links (for more information)

Help us improve this page: Suggest a link or noteReport a problem