🚨 Get Your Free NFT Certificate Mint by Completing the Web3 Exam! START NOW

Code has been added to clipboard!

The CSS Font-Stretch Property

Reading time 1 min
Published Aug 8, 2017
Updated Oct 15, 2019

How to make a CSS font stretch?

By using the CSS font-stretch property, you can define whether you want your font to be wider or narrower:

Example
div {
    font-stretch: condensed;
}

DataCamp
Pros
  • Easy to use with a learn-by-doing approach
  • Offers quality content
  • Gamified in-browser coding experience
  • The price matches the quality
  • Suitable for learners ranging from beginner to advanced
Main Features
  • Free certificates of completion
  • Focused on data science skills
  • Flexible learning timetable
Udacity
Pros
  • Simplistic design (no unnecessary information)
  • High-quality courses (even the free ones)
  • Variety of features
Main Features
  • Nanodegree programs
  • Suitable for enterprises
  • Paid Certificates of completion
Udemy
Pros
  • Easy to navigate
  • No technical issues
  • Seems to care about its users
Main Features
  • Huge variety of courses
  • 30-day refund policy
  • Free certificates of completion

Syntax and property values

The CSS font-stretch property only requires defining one value:

font-stretch: value;

In the table below, you can find all the keywords you can use as values for a CSS font stretch.

Value Relation to the default character width
ultra-condensed 50%
extra-condensed 62.5%
condensed 75%
semi-condensed 87.5%
normal 100%
semi-expanded 112.5%
expanded 125%
extra-expanded 150%
ultra-expanded 200%

Browser support

Browser image
Chrome
60+
Browser image
Edge
12+
Browser image
Firefox
9+
Browser image
IE
9+
Browser image
Opera
47+
Browser image
Safari
11+

Mobile browser support

Browser image
Chrome
60+
Browser image
Firefox
9+
Browser image
Opera
44+
Browser image
Safari
11+