Sub topic 2
Leading: the Space Between Lines
Assume you know basic font and font-size terms, plus basic HTML and CSS. This chapter focuses on leading, also called line spacing, and how it changes with the text measure and typeface.
Leading: the space between lines
Leading is the vertical space between lines of text. In CSS, it is controlled mainly by line-height. Leading affects how easily the eye moves from the end of one line to the start of the next.
Too little leading makes lines look crowded. The eye can jump to the wrong line. Too much leading breaks the paragraph into disconnected strips.
A useful starting point is a line-height between 1.4 and 1.6 times the font size. This ratio is called unitless line-height.
Choosing a leading value
Start with the typeface and the measure, which is the width of the text block. Then adjust the leading while viewing several complete paragraphs.
- Use about 1.4 for a narrow measure or a typeface with a large x-height.
- Use about 1.5 for typical body text.
- Use about 1.6 or more for long lines, small text, or a dense typeface.
These are starting points, not fixed rules. Inspect the actual page at its intended reading size.
Longer lines need more leading
Long lines require more horizontal eye movement. Extra leading separates adjacent lines and makes it easier to return to the correct line. If you widen a paragraph but keep the same leading, the text can begin to look dense.
Why the typeface changes the answer
Typeface anatomy affects the visual space required between lines. A typeface with a tall x-height can look crowded at the same line-height as one with smaller lowercase forms. Large ascenders, descenders, or heavy strokes can also make lines appear closer together.
Compare paragraphs at the same font size and line-height. If the counters and descenders feel compressed, increase leading. If the paragraph looks loose and fragmented, reduce it.
Leading in CSS: unitless `line-height`
Use a unitless value so the leading scales when the font size changes. Avoid a fixed length such as 24px for general body text.
body {
font-size: 1rem;
line-height: 1.5;
}
.article p {
max-width: 65ch;
}The value 1.5 gives each line a line box 1.5 times the element's font size. A nested element with a different font size inherits the ratio rather than a stale pixel height.
Exercise
A paragraph becomes hard to follow after its measure is widened. What should you try first?
Show answer
Increase its unitless line-height, then inspect the paragraph again at the intended font size.