letter-spacing

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;
}

Contributors

Interested in helping build Docs? Read the Contribution Guide or share your thoughts in this feedback form.

Learn CSS on Codecademy

Contributors