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-condensedextra-condensedcondensedsemi-condensednormalsemi-expandedexpandedextra-expandedultra-expanded
Relative constants:
narrowerwider
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;
}
Copyright © 2006 of the German translation, dpunkt.verlag GmbH
You may print the online version for your private use.
Otherwise, this chapter from “CSS − Anspruchsvolle Websites mit Cascading Stylesheets” is subject to the same conditions as the bound edition: the work, including all its parts, is protected by copyright. All rights reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
dpunkt.verlag GmbH, Ringstraße 19, 69115 Heidelberg