Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

CSS3 font-stretch property

CSS3 font-stretch property

Example

Make the text of all div elements wider:

div

{

font-stretch: expanded;

}

Try it »


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Currently no major browser supports the font-stretch property.


Property definition and usage

The font-stretch property allows you to make text wider or narrower.

Default value: none
Inherited: yes
Version: CSS3
JavaScript syntax: object.style.fontStretch="expanded"

Syntax

font-stretch: wider|narrower|ultra-condensed|extra-condensed|condensed|semi-condensed|normal|semi-expanded|expanded|extra-expanded|ultra-expanded|inherit;

Value Description
wider Make the text wider
narrower Make the text narrower
ultra-condensed Make the text as narrow as possible
extra-condensed Specifies the second most condensed font
condensed Specifies the second semi-condensed font
semi-condensed Specifies a semi-condensed font
normal Specifies a font that is neither condensed nor expanded
semi-expanded Specifies a semi-expanded font
expanded Specifies an expanded font
extra-expanded Specifies the second most expanded font
ultra-expanded Specifies the most expanded font
inherit Specifies that this property takes the same computed value as the property of the element's parent