CSS letter-spacing property

CSS letter-spacing Property

Description

The letter-spacing property modifies the spacing between adjacent characters.

Possible Values

  • normal – The default character spacing is unchanged. In effect, this is equivalent to setting the value to 0.
  • length – This increases the spacing between characters. The larger the length, the more space there is between characters. Negative values ​​are allowed.


Applicable objects

All HTML elements.

DOM syntax

object.style.letterSpacing = "5px;" 

Example

The following is an example showing how to set the spacing between characters.

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

This will produce the following results−

CSS letter-spacing property

Leave a Reply

Your email address will not be published. Required fields are marked *