← Back to properties

CSS Property

line-height

Typography

Sets the height of a line box, controlling the space between lines of text.

Syntax

line-height: value;

Example

line-height: 1.6;

Common use cases

  • Improving readability of body text
  • Vertically centering single-line text
  • Controlling spacing in compact UI elements

Practical developer insight

Use unitless values like 1.5 instead of px or rem — unitless line-height scales proportionally with font-size and avoids inheritance bugs.

Related properties