Sub topic 4
Line length and type size set the column
This chapter assumes you know point size, leading, and line length, and that you can set up columns in a layout tool or in CSS. It covers how the type you choose fixes the width of your columns, and why you should settle that before you divide the page.
Why type comes first
A grid is often taught as a division of the page: pick a number of columns, then pour text in. For text-heavy work, that order causes trouble. The reader's eye needs a line of a certain length at a certain type size. If the column is too narrow or too wide for that size, no spacing adjustment will repair it.
The working rule is that the body text sets the measure, and the measure sets the column or the span of columns. The measure is the width of a line of text. You pick the type first, then a target measure, then build or choose a grid so that some combination of columns delivers that measure.
Measuring in characters
Line length is more useful counted in characters than in millimetres. A 90 mm line is comfortable at 11 pt and cramped at 7 pt. Counting characters, including spaces, removes the dependence on size.
Typographers give these ranges for body text in alphabetic scripts:
| Layout | Characters per line | Notes |
|---|---|---|
| Single column, book or article | 45 to 75 | About 66 is the classic target |
| Multi-column text | 40 to 50 | Short lines suit the eye's return sweep |
| Narrow newspaper-style columns | 30 to 40 | Justified text needs hyphenation to avoid gaps |
| Captions, sidebars, footnotes | 30 to 50 | Smaller type tolerates a shorter line |
These are guides. Content, typeface, and reader context shift them. Reference text that people scan can use shorter lines, and a dense novel can run toward the long end.
What goes wrong at the extremes
- Too long (over about 80 characters). The eye loses its place when it travels back to the start of the next line. Readers re-read lines or skip them. More leading helps a little but does not fix it.
- Too short (under about 30 characters). The eye jumps down every few words. Ragged text becomes choppy, and justified text opens up wide word gaps and "rivers" of white space. Heavy hyphenation follows, with stacked hyphens at line ends.
Estimating characters per line
You can estimate characters per line without setting any text. For most text typefaces, the average character, counting lowercase letters and spaces, is about 0.5 em wide. An em is the type size, so a 10 pt font has an average character width near 5 pt. The factor varies by typeface:
- Condensed faces are around 0.42 em.
- Typical book serifs and humanist sans faces are around 0.45 to 0.5 em.
- Wide, geometric, or extended faces are 0.55 em or more.
The estimate is the line width divided by the average character width. This code builds on the four-column A4 example from the grid-math material, where each column is 38.75 mm wide with 5 mm gutters:
MM_TO_PT = 72 / 25.4 # 1 mm in points
AVG_CHAR_EM = 0.5 # average character width as a fraction of the type size
def chars_per_line(width_mm, size_pt, avg_char_em=AVG_CHAR_EM):
"""Estimated characters that fit on one line."""
return width_mm * MM_TO_PT / (size_pt * avg_char_em)
def span_width(column, gutter, span):
"""Width of `span` adjacent columns, including the gutters between them."""
return span * column + (span - 1) * gutter
column, gutter, size = 38.75, 5, 10
for span in (1, 2, 3, 4):
width = span_width(column, gutter, span)
print(span, round(width, 2), round(chars_per_line(width, size), 1))The output is:
1 38.75 22.0
2 82.5 46.8
3 126.25 71.6
4 170.0 96.4Spanning columns matters here, because a span includes the gutters it crosses. At 10 pt, one column holds only about 22 characters, which is too short for body text. Two columns give about 47, a good multi-column measure. Three give about 72, a good single-column measure. All four give about 96, which is too long.
So this grid can serve several jobs. Body text can span two columns in a multi-column layout or three in a single-column layout, and one column can hold short items such as captions or notes. The type size and the grid have to be chosen together.
Solving in the other direction
Sometimes the grid is fixed, for example by a template or an existing brand system, and the type size is open. You then solve for the size that hits a target character count:
size = width × MMTOPT ÷ (characters × 0.5)
For the two-column span of 82.5 mm and a target of 45 characters, the size is 82.5 × 2.8346 ÷ (45 × 0.5) ≈ 10.4 pt. That is a sensible body size. For the one-column width of 38.75 mm and the same target, the size is about 4.9 pt, which is unreadable. The result tells you that a single column of this grid cannot carry body text at any usable size. If the answer is below about 8 pt in print, or below about 14 px on screen, the span is too narrow.
Leading follows the measure
Leading is the vertical distance from one baseline to the next. It interacts with line length:
- A common starting point for body text is leading of 120% to 145% of the type size, so 10 pt text sits on 12 to 14.5 pt leading.
- Longer lines need more leading, because the eye needs a clear path back to the start of the next line. A 75-character line at 120% leading looks dense. The same line at 140% looks open.
- Shorter lines tolerate tighter leading.
- Typefaces with a large x-height, which is the height of lowercase letters such as "x", and typefaces with wide letterforms need more leading than ones with small x-heights.
Your leading value also becomes the unit of the baseline grid, covered in the chapter on baseline grids and vertical rhythm. Choose a leading that works as a number you can divide and multiply, such as 12 pt or 1.5 rem, because every other vertical measurement will be built from it.
Setting the measure in CSS
On screen, the equivalent of a character-based measure is the ch unit. One ch equals the advance width of the digit "0" in the element's font. It tracks both the typeface and the size, so it is a good proxy for a character count.
.prose {
font-size: 1.125rem;
line-height: 1.5;
max-width: 66ch;
}Two details matter:
chis measured in the font of the element where it is used, so setmax-widthon the element that carries the text, not on a parent with a different font size.- The "0" glyph is usually a little wider than the average lowercase letter. A
66chbox therefore often holds somewhat more than 66 average characters. Check with real text, or lower the value, for example to60ch, if lines run long.
Use max-width rather than width. On a narrow phone the line should shrink with the screen. On a wide monitor the line should stop at the measure instead of stretching.
Edge cases
- Justified text. Justification stretches or shrinks word spaces to fill the line. It needs enough words per line to distribute the slack, so with fewer than about 40 characters, gaps become obvious. Turn on hyphenation, or use ragged-right text for narrow columns.
- Mixed sizes. Captions, pull quotes, and footnotes often have a smaller or larger type size than body text. The same span of columns then gives a different character count. A caption at 8 pt across one column can reach about 27 characters in the grid above, which is acceptable for a short caption.
- Headlines. Large display type is not subject to the body-text ranges. A headline is read as a shape, and it may span the full width with only a few characters per line count.
- Other writing systems. The ranges here are for alphabetic scripts. Chinese, Japanese, and Korean text uses roughly square characters of about 1 em, and lines commonly hold about 25 to 40 characters. Estimate with an average character width of 1 em, not 0.5 em.
- Bilingual and translated layouts. German and Finnish text often runs longer than English, and the word lengths change the rag. Test the measure with the longest language.
Summary of the procedure
- Choose the typeface and body size for the reading context.
- Choose a target character count from the table above.
- Convert it to a width with the estimate, then verify with real text.
- Choose the leading from the size and measure.
- Build the columns, margins, and gutters so that a span of columns equals that width, or adjust the type size so that an existing span hits the count.
Exercise
A landscape A4 page is 297 mm wide with 15 mm margins and 6 mm gutters. You want 3 columns, and body text will span two columns at 9 pt. Using an average character width of 0.5 em, about how many characters fit on a line, and is this within the range for multi-column text?
Show answer
Usable width is 297 - 2 × 15 = 267 mm. Column width is (267 - 2 × 6) / 3 = 85 mm. A two-column span is 2 × 85 + 6 = 176 mm, which is 176 × 2.8346 ≈ 498.9 pt. The average character is 9 × 0.5 = 4.5 pt wide, so about 498.9 / 4.5 ≈ 111 characters per line. That is far above the 40 to 50 range for multi-column text and above the 75 limit for single-column text. Body text should sit in a single 85 mm column, which gives 85 × 2.8346 / 4.5 ≈ 53.5 characters. That is slightly above 50 but acceptable. Alternatively, raise the size of text in the two-column span, which would need a size near 19 pt for 55 characters and is therefore not useful for body text.
Exercise
A web article uses font-size: 1rem and max-width: 90ch. Readers report that they lose their place at the start of each line. What is the likely cause, and what is a fix that keeps the text in one column?
Show answer
At 90ch the line holds about 90 or more characters, which is above the 75-character upper limit for single-column text, so the eye loses its place on the return sweep. Reduce the max-width to about 60ch to 70ch, set on the element that carries the text. If the layout needs to keep that width, raise the leading, for example from 1.4 to 1.6, but shortening the line is the stronger fix.