Copyright © tutorialspoint.com

CSS - font-stretch

previous next


Advertisements

Description:

The font-stretch property makes text characters wider or narrower than the font.s default character width.

Possible Values:

Applies to:

All the HTML elements

DOM Syntax:

object.style.fontStretch="expanded";

Example:

Here is the example using this property:

<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>

This will produce following result:

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.

To Become more comfortable - Do Online Practice


previous next

Copyright © tutorialspoint.com