Skip to content

Try our new Crash Courses!

Become a member using the button below to hide this banner and gain access to our new Crash Courses.

Letter spacing – CSS

Demo

Summary

To change the space between the letters in an element’s text using CSS, use the letter-spacing property:

selector {
  letter-spacing: 1px;
}

Details

The letter-spacing property takes a length value (like 1px or 1em). A positive value increases the space between letters. A negative value decreases the space between letters.

Exercises

First, recreate the CSS code from the Demo section in your CSS file. Then try changing the value for the property. Try using positive and negative values.

Reference

letter-spacing – MDN

Back to: CSS Reference > CSS Properties