Set the font stretch of an element with CSS



To set the font-stretch of an element, use the font-stretch property. Possible values could be normal, wider, narrower, ultra-condensed, extra-condensed, condensed, semi-condensed, semi-expanded, expanded, extra-expanded, ultra-expanded.

<html>
   <head>
   </head>
   <body>
      <p style = "font-stretch:ultra-expanded;">
         If this doesn't appear to work, it is likely that your computer doesn't have a
         condensed or expanded version of the font being used.
      </p>
   </body>
</html>
Samual Sam
Samual Sam

Learning faster. Every day.


Advertisements