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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.