Controlling Letter and Word Spacing

The letter-spacing and word-spacing properties let you control the amount of spacing that is inserted between characters and words, respectively.

Setting Letter Spacing

The letter-spacing property lets you control the spacing that is inserted between characters in a string or line of text. This property takes either a length value (em, pixel, or other measuring unit) or a value of normal.

The normal value is the default and allows a browser to increase or decrease the spacing between characters to justify a line of text (if the text-align property is set to justify). If a length value is set, a browser only adds spacing between words to justify a line.

When setting letter spacing, a length value indicates spacing ...

Get Cascading Style Sheets (CSS) by Example now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.