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;
}
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
Coursera
Pros
  • Professional service
  • Flexible timetables
  • A variety of features to choose from
Main Features
  • Professional certificates of completion
  • University-level courses
  • Multiple Online degree programs
Datacamp
Pros
  • Great user experience
  • Offers quality content
  • Very transparent with their pricing
Main Features
  • Free certificates of completion
  • Focused on data science skills
  • Flexible learning timetable

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+

Latest Udacity Coupon Found:

Verified STAFF PICK

75% OFF COURSES

Udacity Black Friday Offer

The best time to save on Udacity courses is now - follow this coupon to access a 75% Udacity Black Friday discount & enjoy learning at a very low cost!

Expiration date: 22/01/2021
3176 People Used
Only 97 Left
Rating
5.0