CSS line-height Property Explained

What the CSS line-height property does, with an example.

Published November 6, 2026

The CSS line-height property sets the height of a line of text, affecting vertical spacing between lines.

Key points

  • Check browser compatibility on a resource like caniuse.com if targeting older browsers

Example

line-height: 1.5;
More CSS articles