CSS font-stretch attribute
- Previous page font-size-adjust
- Next Page font-style
Definition and Usage
The font-stretch property can distort the current font-family to stretch or condense.
See also:
CSS Tutorial:CSS Font
CSS Reference Manual:CSS font attribute
HTML DOM Reference Manual:fontStretch Property
Example
Sets the font-stretch property of HTML elements:
h1 font-stretch:ultra-condensed;
CSS Syntax
font-stretch: ultra-condensed|extra-condensed|condensed|semi-condensed|normal|semi-expanded|expanded|extra-expanded|ultra-expanded|initial|inherit;
Property Value
Value | Description |
---|---|
normal | Default Value. Sets the scaling ratio to standard. |
wider | Sets the expand ratio to a further expand value. |
narrower | Sets the shrink ratio to a further shrink value. |
|
Sets the scaling ratio of font-family. "ultra-condensed" is the widest value, while "ultra-expanded" is the narrowest value. |
Technical Details
Default Value: | normal |
---|---|
Inheritance: | yes |
Version: | CSS2 |
JavaScript Syntax: | object.style.fontStretch="ultra-expanded" |
Browser support
The numbers in the table indicate the first browser version that fully supports this attribute.
Chrome | IE / Edge | Firefox | Safari | Opera |
---|---|---|---|---|
48.0 | 9.0 | 9.0 | 11.0 | 35.0 |
- Previous page font-size-adjust
- Next Page font-style