B.41. font-stretch

Many font families (Futura comes to mind) have not only different weights (e.g. normal, light, bold) and styles (e.g. normal, italic, oblique), but also different densities (e.g. normal, condensed, extended). This property lets you select the density of the font to be displayed in an element.

The CSS2 specification makes no mention of whether a browser should artificially condense or expand a font that does not have different density versions available; however, since most browsers do this for other font properties (e.g. font-style, font-weight, font-variant), this would not be unreasonable to expect. The property name certainly suggests that function.

Inherited: Yes

See also: Section B.37font

B.41.1. Value

One of 11 constants: ...

Get HTML Utopia: Designing Without Tables Using CSS now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.