CSS property: font
Description
Shorthand property for font settings.
See font-style, font-variant, font-weight, font-size, line-height, font-family.
Syntax
font: [ [ <style> || <variant> || <weight> ]? <size> [ / <line-height> ]? <family> ] | caption | icon | menu | message-box | small-caption | status-bar;
Values
- <style>
See font-style.
- <variant>
normal small-caps - <weight>
See font-weight.
- <size>
See font-size.
- <line-height>
See line-height.
- <family>
See font-family.
- caption
The font used for captioned controls (e.g., buttons, drop-downs, etc.).
- icon
The font used to label icons.
- menu
The font used in menus (e.g., dropdown menus and menu lists).
- message-box
The font used in dialog boxes.
- small-caption
The font used for labeling small controls.
- status-bar
The font used in window status bars.
Versions
Examples
p { font: italic 1.3em/1.7em "Verdana", sans-serif; }