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 2.1"[ [ <font-style> || <font-variant> || <font-weight> ]? <font-size> [ / <line-height> ]? <font-family> ] | caption | icon | menu | message-box | small-caption | status-bar"
CSS3"[ [ <font-style> || <font-variant-css21> || <font-weight> || <font-stretch> ]? <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