Sub topic 7
Longer Lines Need More Leading
This chapter assumes you know what leading and measure are, and that you can read basic CSS. You should also know the usual starting points: a measure of about 45 to 75 characters, and a leading of about 1.4 to 1.6 times the font size.
Why the two settings depend on each other
At the end of each line, the eye jumps back to the left edge and must find the start of the next line. On a short line, that jump is small and easy. On a long line, the eye travels far, and the lines above and below look alike. Readers then skip a line or read the same line twice.
More space between lines gives the eye a clear horizontal band to follow back. So as the measure grows, the leading should grow too. The reverse also holds. A narrow column needs less leading, because the eye has only a short way to travel and wide gaps start to break the text into separate strips.
A working rule
Pick a base leading for your body text, then adjust it by a small amount as the measure changes.
| Measure (characters per line) | Typical line-height |
|---|---|
| About 40 to 50 | 1.35 to 1.4 |
| About 60 to 66 | 1.45 to 1.5 |
| About 70 to 80 | 1.55 to 1.65 |
These numbers are starting points, not laws. The change between steps is small, often 0.1. A large jump, such as moving from 1.4 to 2.0, makes the paragraph look loose and hurts reading.
Applying it in CSS
Set a default on the body, then override it for blocks with a different measure. Use a unitless line-height, so each element multiplies its own font size.
body {
line-height: 1.5;
}
.article p {
max-width: 70ch;
line-height: 1.6;
}
.caption {
max-width: 45ch;
line-height: 1.4;
}The article paragraphs have a wider measure, so they get 1.6. The caption has a narrow measure, so it gets 1.4. Anything without a class inherits 1.5 from body.
Keep the two properties in the same rule. When someone later changes max-width, they will see the line-height right beside it and can adjust both.
Common errors
- Changing the measure and forgetting the leading. A designer widens a content column from 60ch to 85ch but leaves the line-height at 1.4. The text now feels dense and hard to track.
- Using one fixed leading for every context. A single value is fine as a default, but a sidebar, a caption and a wide article column rarely share the same ideal.
- Over-correcting. Adding too much leading to fix a long measure separates the lines so much that the paragraph stops reading as one block. If a line is much longer than 80 characters, shorten the measure first.
- Using a fixed length for line-height. A value like
line-height: 24pxdoes not scale with the font size, so it breaks when a heading or a user's larger text size inherits it.
Checking your work
Squint at the paragraph from arm's length. You should see even gray bands of text with consistent white space between them. If the lines seem to merge, add a little leading. If the paragraph breaks into separate stripes, remove some.
Exercise
A blog's article column is widened from 60ch to 78ch, and the body text still uses line-height: 1.4. Readers report that they lose their place at the start of each line. What change should you make, and why?
Show answer
Increase the line-height slightly, to about 1.55 to 1.6, in the same rule that sets the wider max-width. The longer measure makes the eye's return trip to the next line longer, so each line needs a clearer band of space. You could also narrow the column to around 65ch, which would let you keep a leading near 1.45 to 1.5.
Exercise
Why is line-height: 1.5 preferred over line-height: 24px when you set leading for a caption with a smaller font size?
Show answer
A unitless value is multiplied by each element's own font size, so the caption gets a proportionally smaller line height. The fixed 24px value would be inherited as-is, which gives a smaller font too much space between lines.