CSS font-stretch Property
Selects a normal, condensed, or expanded face from a font family
Syntax
font-stretch: ultra-condensed | extra-condensed | condensed | semi-condensed | normal | semi-expanded | expanded | extra-expanded | ultra-expanded | <percentage>;Values
| Value | Description |
|---|---|
| normal | Normal width (default) |
| condensed | Narrower than normal |
| expanded | Wider than normal |
| 75% | Percentage-based width |
Example
.condensed-heading {
font-stretch: condensed;
}Understanding CSS font-stretch
The CSS font-stretch property selects a normal, condensed, or expanded face from a font family. As part of the Typography module in CSS, it is one of the most commonly used properties for controlling the visual presentation of web pages.
You can set font-stretch to values such as normal, condensed, expanded, 75%, among others. Each value changes how the browser renders the affected element, giving you fine-grained control over your page layout and design. Choosing the right value depends on the specific design requirements of your project.
Common use cases for the font-stretch property include responsive web design, component-based layouts, and creating visually consistent interfaces across devices. It works closely with related properties like font, font-family, font-weight to achieve complex styling effects. Understanding how these properties interact helps you write cleaner, more maintainable stylesheets.
Browser support for font-stretch is excellent across all modern browsers including Chrome, Firefox, Safari, and Edge. For older browsers, consider using fallback values or progressive enhancement strategies. The property can also be set dynamically via JavaScript using element.style.fontStretch or the CSS custom properties (variables) approach for theming.
Related Properties
fontShorthand for font-style, font-variant, font-weight, font-stretch, font-size, line-height, and font-family
font-familySpecifies a prioritized list of font family names for the selected element
font-weightSets the boldness of the font
font-styleSets whether a font should be styled as normal, italic, or oblique
Explore More CSS Properties
Browse our complete reference of 251 CSS properties with syntax, examples, and tips.