XML technologies / CSS / Advanced websites with CSS / CSS property reference / font-stretch

(Excerpt from “CSS − Advanced websites with Cascading Stylesheets” by Rachel Andrew & Dan Shafer)

Many typefaces (for example Futura) have not only different weights (for example normal, light, bold) and styles (for example normal, oblique, italic), but also different widths (for example normal, condensed and expanded). The property font-stretch describes the width of a typeface.

Inherited: yes

See also: font

Values

One of nine absolute and two relative constants.

Absolute constants:

  • ultra-condensed

  • extra-condensed

  • condensed

  • semi-condensed

  • normal

  • semi-expanded

  • expanded

  • extra-expanded

  • ultra-expanded

Relative constants:

  • narrower

  • wider

The starting point for relative constants is the value applying to the parent element.

Default value: normal

Compatibility

CSS version: 2

Not supported by any current browser.

Example

The following style rule sets elements of the class grosszuegig the extra-wide character width extra-expanded:

.grosszuegig{
 font-stretch: extra-expanded;
}

  

 

 

 

back to top