Tutorials Point


  CSS Home

  CSS Reference
  Pseudo Classes & Elements

Copyright © 2014 by tutorialspoint



  Home     References     Discussion Forums     About TP  

CSS - letter-spacing


previous next AddThis Social Bookmark Button


Advertisements

Description:

The letter-spacing property modifies the amount of space placed between adjacent characters.

Possible Values:

  • normal : The default spacing between letters is not changed. In practice, this is equivalent to setting the value to 0.
  • length: This will add to the spacing between letters - the greater the length, the more space will be seen between letters. Negative values are permitted.

Applies to:

All the HTML elements.

DOM Syntax:

object.style.letterSpacing="5px;"

Example:

Following is the example which demonstrates how to set the space between characters.

<p style="letter-spacing:5px;">
This text is having space between letters.
</p>

This will produce following result:

This text is having space between letters.

To Become more comfortable - Do Online Practice



previous next Printer Friendly

Advertisements


  

Advertisements