CSS font property

Usage

A shorthand way to set all font properties at once. Can be used to set font-style, font-variant, font-weight, font-size/line-height, and font-family

Values

  • font-style, font-variant, font-weight, font-size/line-height, and font-family properties
  • caption - defines the font used by caption controls, such as buttons
  • icon - defines the font used by icon labels
  • menu - defines the font used by drop-down menus
  • message-box - defines the font used by message boxes
  • small-caption - defines the font used by small captions
  • status-bar - defines the font used by status bars

Example

Code:

p {
  font: italic small-caps bold 0.8em/1.5em verdana
}

p {
  font: icon
}