CSS font-width Property
The font-width property selects a condensed or expanded face of a font, such as condensed or 125%. It replaces font-stretch.
Description
The font-width property selects a narrower or wider face of a font family, such as condensed or expanded. It is the new name for font-stretch, renamed in CSS Fonts Level 4 because the property chooses a designed width rather than stretching glyphs. Both names accept the same values and font-stretch remains a legacy alias.
Values are keywords from ultra-condensed to ultra-expanded or percentages from 50% to 200%. With a variable font that has a width (wdth) axis, any percentage selects an exact width; with static fonts the closest available face is used, and if the family has no other widths the property has no effect.
Definition
- Initial value
- normal
- Applies to
- all elements and text
- Inherited
- yes
- Computed value
- a percentage
- Animatable
- by computed value type
- JavaScript syntax
- object.style.fontWidth
Syntax
font-width: normal | <percentage [0,inf]> | ultra-condensed | extra-condensed | condensed | semi-condensed | semi-expanded | expanded | extra-expanded | ultra-expanded;
Values
- normalThe default. Uses the normal width face (100%).
- <percentage>A width between 50% and 200%. Values in between select the closest face or an exact instance of a variable font.
- ultra-condensed ... ultra-expandedKeywords mapping to 50%, 62.5%, 75%, 87.5% (semi-condensed), 112.5% (semi-expanded), 125%, 150% and 200%.
- initialSets the property to its initial value.
- inheritTakes the computed value of the parent element.
Example
Browser Support
The following information will show you the current browser support for the CSS font-width property. Hover over a browser icon to see the version that first introduced support for this CSS property.
Desktop





Tablets & Mobile





