letter-spacing

christian.dinh's avatar
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

Contribute to Docs

Learn CSS on Codecademy