Skip to main content

What does the line-height property do?

line-height sets the line height, the distance between the baselines of adjacent lines of text. It determines how dense or "airy" the text looks.

Example:

css
p { line-height: 1.5; }

If you specify a number (for example 1.5), it is multiplied by the current font-size. You can also set it in px, em, %, or normal.

Short Answer

Interview ready
Premium

A concise answer to help you respond confidently on this topic during an interview.