Font related properties
Summary
Sets font-style, font-variant, font-weight, font-size/line-height, font-family properties in one declaration.
The order is obligatory, not all options must be set.
font-size and font-family are required options.
Properties
No properties.
Methods
No methods.
Events
No events.
Usage
 p {
 font: italic 1.2em/1.5 Georgia;
 }
 div {
 font: italic small-caps 1.2em/14px "Times New Roman";
 }
 em { font: bold 1.2em/2ex Arial; }
In this section
| Property | Description | 
|---|---|
| font | Sets or retrieves a combination of separate font properties of the object. Alternatively, sets or retrieves one or more of six user-preference fonts.Sets or retrieves a combination of separate font properties of the object. Alternatively, sets or retrieves one or more of six user-preference fonts. | 
| font-family | Sets or retrieves the name of the font used for text in the object. | 
| font-feature-settings | Gets or sets one or more values that specify glyph substitution and positioning in fonts that include OpenType layout features. | 
| font-size | Sets or retrieves a value that indicates the font size used for text in the object. | 
| font-size-adjust | Sets or retrieves a value that specifies an aspect value for an element that will effectively preserve the x-height of the first choice font, whether it is substituted or not. | 
| font-stretch | Sets or retrieves a value that indicates a normal, condensed, or expanded face of a font family. | 
| font-style | Sets or retrieves the font style of the object as italic, normal, or oblique. | 
| font-variant | Gets or sets whether the text of the object is in small capital letters. | 
| font-weight | Gets of sets the weight of the font of the object. | 
See also
Related articles
Fonts
Font related properties
Attributions
Microsoft Developer Network: [Windows Internet Explorer API reference Article]