CSS | font-stretch Property
The font-stretch property in CSS is used to set the text wider or narrower. This property is not working any font. Its only work when font family has a width-variant face.
font-stretch: normal|ultra-condensed|extra-condensed|condensed| semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded;
- normal: It is the default font face. It does not stretch the font.
- ultra-condensed: It is used to specify font face more condensed than normal.
- extra-condensed: It is used to set text narrower then normal and not narrower then ultra-condensed.
- condensed: It is used to set text narrower then semi-condensed and not narrower then extra-condensed.
- semi-condensed: It is used to set text narrower then normal and not narrower then semi-condensed.
- semi-expanded: It is used to set text wider than normal, but not wider then expanded.
- expanded: It is used to set text wider than semi-expanded, but not wider then extra-expanded.
- extra-expanded: It is used to set text wider than expanded, but not wider then ultra-expanded.
- ultra-expanded: It is used to set text wider than ultra-expanded.
Note: This property will not work on any font.
Supported Browsers: The browser supported by font-stretch property are listed below:
- Google Chrome 60.0 and above
- Edge 12.0 and above
- Internet Explorer 9.0 and above
- Firefox 9.0 and above
- Opera 47.0 and above
- Safari 11.0 and above