letter-spacing

Published Jul 5, 2021Updated Sep 3, 2021
Contribute to Docs

Set the horizontal spacing between the individual characters in an element.

Syntax

letter-spacing: <letter-spacing-value>;

The CSS units for letter-spacing-value can be:

  • px
  • em

Example 2

Set the letter space between letters in p tag to 15px:

p {
letter-spacing: 15px;
}

All contributors

Looking to contribute?

Learn CSS on Codecademy