CSS font-stretch Property
Whether or not to use a confenced(shrink), or expanded face from font.
Valid values are - normal, ultracondensed, extra-condensed, condensed, semi-condensed, semi-expanded, expanded, extraexpanded or ultra-expanded.
Syntax -
font-stretch: ultra-condensed|extra-condensed|condensed|semi-condensed|normal|semi-expanded|expanded|extra-expanded|ultra-expanded|initial|inherit; |
Now we will see the values with their example -
Value |
Description |
ultra-condensed |
This makes the text as narrower |
extra-condensed |
This makes the text narrower than condensed. |
condensed |
This makes the text narrower than semi-condensed. |
semi-condensed |
This makes the text narrower than normal |
normal |
This is no font stretching, and this is the default value. |
semi-expanded |
This makes the text wider than normal |
expanded |
This makes the text wider than semi-expanded |
extra-expanded |
This makes the text wider than expanded |
ultra-expanded |
This makes the text as wide as it gets. |
Now we will see the example -
Example -
<html> |
Output -