font-width
Limited availability17% of users
Selects a condensed or expanded font face variation. Values range from ultra-condensed to ultra-expanded.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyComingNot in Chrome or Edge yet, so not every major browser supports it.
See how modern your own CSS is.Check your CSS →
Quick facts
- Initial value
normal- Inherited
- Yes
Quick example
font-width: 75%; /* condensed */
font-width: 100%; /* normal */
font-width: 125%; /* expanded */Syntax
normal | <percentage [0,∞]> | ultra-condensed | extra-condensed | condensed | semi-condensed | semi-expanded | expanded | extra-expanded | ultra-expandedExamples
Use condensed font for headlines
h1 {
font-family: "RobotoFlex", sans-serif;
font-width: 75%;
/* Narrower font, more compact headlines */
}Use font-width to select pre-defined font width variants like condensed or expanded.
Expand font for large display text
.hero-text {
font-family: "Inter", sans-serif;
font-width: 125%;
font-size: 4rem;
/* Wide, airy spacing for large text */
}Wider fonts work better at large sizes; condensed fonts at small sizes.
Common pitfalls
- Not all fonts support all widthsfont-width values like 50%, 75%, 100%, 125%, 150% are standard, but not all fonts support all of them. The browser falls back to the closest available width.
- Different from letter-spacingfont-width adjusts the inherent width of the font itself (if available). letter-spacing adds space between characters. Use font-width for font design control, letter-spacing for fine-tuning.
font-width browser support
BaselineLimited availabilityThis feature is not Baseline because it does not work in some of the most widely-used browsers.Not ready for production without a fallback.
Usage17%of people can use this83% use a browser without it.
Browsers
155+
18.4+Mobile
155+Android
18.4+iOS