font
Name: font
Description: Sets the font properties. Used as a type of shortcut, instead of listing each property separately.
Browser Compatibility: IE 3+ / NN 4+ / O 3.5+
Inherited: Yes
Values:
- caption
- [font-family]
- [line-height]
- [font-size]
- [font-style]
- [font-variant]
- [font-weight]
- icon
- inherit
- menu
- message box
- small-caption
- status-bar
Code Example:
p {font: bold .9em sans-serif;}
Comments: The order of the properties should be:
- font-style
- font-variant
- font-weight
- font-size/line-heigh
- font-family
Only a space is required between each property; a semicolon isn't necessary.