Line Height
UI DesignWhat is Line Height
Line height is the vertical distance between lines of text. In print it is called leading. It has a big effect on how easy text is to read. Lines that are too close feel cramped, and lines that are too far apart break the flow.
Recommended Line Height
- Body text: About 1.4 to 1.6 times the font size
- Headings: Tighter, because large text needs less space
- Small UI text: Enough room so lines do not touch
Typographer Matthew Butterick recommends 120% to 145%, while MDN suggests at least 1.5 for paragraphs to help readers with low vision or dyslexia.
Line Height in CSS
Use a unitless value, such as 1.5, so each element multiplies it by its own font size. Keep line heights on your spacing grid where possible, for example multiples of 4.
Line Height and accessibility
WCAG 1.4.12 requires that content still works when users raise line height to 1.5 times the font size. Avoid fixed-height text boxes that clip or overlap when spacing grows.
Frequently asked questions
What is a good line height for body text?
Butterick recommends 120% to 145% of the font size for most text, while MDN suggests at least 1.5 for main paragraphs to help readers with low vision or dyslexia. Many interfaces use about 1.4 to 1.6 for body text.
Should line height be unitless in CSS?
Usually yes. A unitless value, such as 1.5, is multiplied by each element's own font size, which avoids odd results when child elements inherit a different size.
What does WCAG say about line height?
WCAG 1.4.12 requires that content still works when users increase line height to 1.5 times the font size, so text containers must not clip or overlap when spacing grows.
Related terms
View all UI Design terms →Typography
Typography is the choice and arrangement of type in an interface. It covers the typeface, size, weight, line height, line length and…
Line Length
Line length, also called the measure , is the width of a line of text , usually counted in characters per line. It affects readability. On…
Baseline Grid
A baseline grid is a set of evenly spaced horizontal lines that text sits on. Each line of text has its baseline , the line most letters…
Vertical Rhythm
Vertical Rhythm is a design principle that establishes consistent spacing and alignment between elements down a page. It creates a regular…
Type Scale
A type scale is a fixed set of font sizes and styles that a product uses for all its text, from large headings to small labels. Instead of…
