Copyright © tutorialspoint.com

CSS - letter-spacing

previous next


Description:

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

Possible Values:

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

Copyright © tutorialspoint.com