English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

CSS Reference Manual

CSS @rules (RULES)

Complete List of CSS Properties

CSS3 font-Usage and examples of the stretch property

font-The stretch CSS property selects a normal, compressed, or expanded appearance from the font.

The following table provides usage instructions and version history of this property, as well as the syntax of using this property in JavaScript scripts.

default value:normal
applies to:all elements. It also applies to::first-letter and::first-line
inherits:is
animation is available:is.refer to animation properties.
version: CSS3new feature
JavaScript syntax:object.style.fontStretch="expanded"

font-stretch syntax usage

The syntax of this property is as follows:

font-stretch: normal | ultra-condensed | extra-condensed | condensed | semi-condensed | semi-expanded | expanded | extra-expanded | ultra-expanded | initial | inherit

The following examples demonstrate how to use font-stretch property.

p {
    font-family: Arial, Helvetica, sans-serif;
    font-stretch: condensed;
}
Test and see‹/›

Property value

The following table describes the values of this property.

ValueDescription
normalSpecify the normal font. This is the default value.
ultra-condensedSpecify the densest font.
extra-condensedSpecify the second most concise font.
condensedSpecify the condensed font
semi-condensedSpecify the slightly condensed font.
semi-expandedSpecify the slightly expanded font.
expandedSpecify the expanded font.
extra-expandedSpecify the second most expanded font.
ultra-expandedSpecify the most expanded font.
initialSet this property to its default value.
inheritIf specified, the associated element adopts its parent element's font-stretch property values.

Browser compatibility

font-stretch Most browsers do not support this property.

  • Firefox 9+

  • Google Chrome×

  • Internet Explorer 9+

  • Apple Safari ×

  • Opera ×

Warning:font-Warning: stretch Chrome, Safari, and Opera browsers currently do not support this property. It is best to avoid using this property.

Further reading

Please refer to the following tutorials:CSS fonts,CSS units,CSS pseudo-elements.

Related attributes and rules:font,font-family,font-size,font-size-adjust,font-style,font-variant,font-weight,@font-face.