CSS Font Property
CSS 1 |
CSS 2 |
CSS 3 |
|
|
|
|
Description
Sets the font properties. Used as a type of shortcut, instead of listing each property separately.
Syntax
font: [value1] [value2] ...
Possible values
- [font-style]
- [font-variant]
- [font-weight]
- [font-size]
- [font-family]
Initial Value
None
Applies To
All elements
Inherited
Yes
Media
Visual
Example
{font: bold .9em sans-serif;}