Line Height & Text Spacing
Spacing properties control the vertical and horizontal rhythm of text, making a significant impact on readability.
line-height
Sets the height of a line box. A unitless number (e.g., 1.6) is recommended — it acts as a multiplier of the element's own font-size and is inherited correctly by children.
letter-spacing
Adds or removes space between characters. Use em units so spacing scales with font-size. Slightly positive values improve readability of all-caps and small text.
word-spacing
Controls the gap between words. Useful in justified text to prevent large gaps.
text-indent
Indents the first line of a block. A negative value combined with matching positive padding creates a hanging indent.