typography

line-height

Sets the vertical distance between lines of text. Unitless values are preferred because they scale with the element's own font size.

line-height: normal | <number> | <length> | <percentage>

Common values

Value Effect
normal Browser default, usually about 1.2
1 Tight; lines touch the em box
1.5 Comfortable reading rhythm for body copy
1.2 Common headline density
24px Fixed leading regardless of font size

Examples

body { line-height: 1.5; }

Readable body text rhythm

h1 { line-height: 1.1; }

Tight headline spacing

.pill { height: 32px; line-height: 32px; }

Vertically center a single line inside a fixed-height chip

Gotcha

Using a unit like em makes descendants inherit the computed pixel value, which can throw off nested text; keep it unitless.

Related properties

← All CSS properties · CSS selectors · Grid vs Flexbox