Skip to main content

Styling & CSS · Text

Line Height

Also called: line-height, Line spacing, Leading

The height each line of text takes up. It sets how loose or tight multi-line text looks, and body text is usually 1.5 to 1.8 times the font size.

Example

In detail

line-height controls how tall each line of text is, and the gap between lines comes from it. If it's too small, multi-line text crams together and is tiring to read. If it's too large, the lines feel disconnected and your eye loses its place. For body text, 1.4–1.6 is recommended for English and 1.6–1.8 for Chinese. Large headings can tighten to 1.2–1.3.

Write it as a unitless multiplier, like line-height: 1.6. It's calculated from the current font size, so the ratio stays the same when the font size changes. A fixed 24px can make lines crash into each other once the font size goes up.

Line height also affects the height of single-line elements and vertical centering. When text in a button doesn't look centered, line height is often the cause. It's not the same as paragraph spacing. The distance between paragraphs is controlled with margin.

Developer info
Term ID
style-line-height
DOM selectors
No DOM cues. This concept isn't detected directly on a page.
Priority
1 · when several match at the same level, the higher priority wins
Version
v1 · updated Sep 29, 2026