Sub topic 14
Choosing and evaluating a grid
This chapter assumes you can calculate column and module sizes, you know how a baseline grid works, and you have placed content on a grid in a design tool or in CSS Grid. It covers the last step: deciding which grid a project needs, then testing the finished layout against that grid. It also covers when to change the grid itself.
Start from the content, not the template
A grid is a tool for a specific body of content. Picking a 12-column grid because a framework ships one tends to produce layouts that fit the framework but not the material. Before you choose, take stock of the content:
- Text volume and continuity. Is it long running prose, short blurbs, or a mix?
- Text structure. Do you have footnotes, pull quotes, captions, sidebars, tables or code listings?
- Image variety. Are the images all one aspect ratio, or do they vary from panoramas to portraits?
- Repetition. Do many items follow the same template, such as products, listings or news cards?
- Output medium. Is it a bound print object with a fixed page size, a screen of unknown width, or both?
Write these answers down. They decide the grid more reliably than taste does.
Matching grid type to content
The table summarizes the usual fit between grid type and content. Treat it as a starting point, not a rule.
| Content | Grid that usually fits | Reason |
|---|---|---|
| A novel or long essay | Single column with generous margins | One continuous text block. Columns add nothing. |
| A report with sidebars and notes | Multi-column (for example 6 columns) | Text can span 4 columns, with notes in the remaining 2. |
| A magazine feature with varied images | Modular, or multi-column with a baseline grid | Images of different sizes need a predictable set of block sizes. |
| A product catalogue | Modular with equal modules | Every item takes one module, so the page reads as a consistent set. |
| A newspaper front page | Multi-column with a fine baseline grid | Many stories of different lengths need narrow columns and strict alignment. |
| A responsive website | Multi-column that changes count by breakpoint | Column count has to adapt to viewport width. |
Column count: pick a number with many factors
For a multi-column grid, the number of columns determines which layouts are possible. A count with many divisors gives more ways to split the page:
- 12 divides into 2, 3, 4 and 6, so halves, thirds, quarters and sixths are all available.
- 8 divides into 2 and 4, so it is simpler but offers no thirds.
- 5 and 7 are prime, so they allow only asymmetric splits. Use them when you want that asymmetry on purpose.
More columns give you more freedom but also more ways to make an inconsistent layout. Many strong designs use fewer columns than they could.
Module count: decide by the smallest unit
For a modular grid, work from the smallest item you must place. If the smallest element is a caption or thumbnail, one module should hold it. Larger elements then span whole numbers of modules. If the smallest element does not fit in one module, the modules are too small and you will end up spanning almost everything.
A decision process
The diagram shows one way to choose and then refine a grid.
Notice the loop. Testing with real content is part of choosing, not a step after it.
Evaluating a layout against its grid
Once content is placed, check the layout against the grid. Work through these checks in order.
- Measure. Body text should sit in a comfortable line length, commonly 45 to 75 characters. Count characters in several lines, not only the first.
- Alignment. Text and image edges should land on column edges or module edges. Check tops and bottoms as well as left and right.
- Baseline. Text in adjacent columns should share baselines. Images and boxes should occupy a whole number of line heights.
- Gutters. The gutter should be the same between every pair of columns, and the same between modules.
- Margins. Outer margins should be consistent, or consistent in a clear pattern for facing pages, with a larger inner margin to allow for the binding.
- Hierarchy. The most important element should be the most visible one. If the grid makes a minor item dominate, change the spans.
- Edge cases. Test the shortest and longest text you expect, and the widest and narrowest images.
Automating the arithmetic checks
Several of these checks are arithmetic, so a short script can run them. This one tests the measure and the vertical rhythm for a grid defined in pixels.
def column_width(total_width, gutter, columns):
return (total_width - (columns - 1) * gutter) / columns
def span_width(column, gutter, span):
return span * column + (span - 1) * gutter
def evaluate(total_width, gutter, columns, span, font_px, line_px, row_height):
col = column_width(total_width, gutter, columns)
width = span_width(col, gutter, span)
chars = width / (font_px * 0.5) # rough: average glyph is about 0.5 em wide
pitch = row_height + gutter # distance from one row's top to the next
return {
"column": col,
"span_width": width,
"chars_per_line": chars,
"measure_ok": 45 <= chars <= 75,
"row_pitch_ok": pitch % line_px == 0,
}
for span, row in [(8, 128), (6, 120)]:
print(span, row, evaluate(1152, 24, 12, span, 16, 24, row))Running it prints:
8 128 {'column': 74.0, 'span_width': 760.0, 'chars_per_line': 95.0, 'measure_ok': False, 'row_pitch_ok': False}
6 120 {'column': 74.0, 'span_width': 564.0, 'chars_per_line': 70.5, 'measure_ok': True, 'row_pitch_ok': True}The first case fails twice. Eight columns of 16 px text give about 95 characters per line, which is too long. A row height of 128 px plus a 24 px gutter is 152 px, which is not a multiple of the 24 px line height, so modules drift off the baseline. The second case passes both checks. The 0.5 em average glyph width is only an estimate, so confirm a close result by counting real lines.
Reading the failures
Grid problems usually show up as symptoms in the layout. Each symptom points to a cause in the grid.
| Symptom | Likely cause in the grid | Fix |
|---|---|---|
| Body text lines are too long | The text spans too many columns | Reduce the span, or add a column and use a sidebar |
| Text lines are too short and ragged | Columns are too narrow for the type size | Span two columns, or reduce the column count |
| Baselines in neighbouring columns do not match | Image and box heights are not multiples of line height | Snap heights to the baseline unit |
| Images look cramped | Gutters or modules are too small for the image content | Increase module size or span more modules |
| Everything looks the same weight | Only one span size is in use | Introduce larger and smaller spans |
| Every page needs special handling | The grid does not match the content's variety | Redesign the grid |
When to revise the grid
A grid is a hypothesis about the content. Revise it when evidence contradicts it. Warning signs include:
- You break the grid on most pages, not on a few chosen ones.
- You need spans the grid cannot produce, such as a third of a page on a 4-column grid.
- Real content changes the plan. A new image type, a longer headline or a table appears that the grid never anticipated.
- A new output arrives, such as a print edition of a web design or a narrower screen class.
When you revise, change one variable at a time: column count, gutter, margin, type size or row height. Several of these interact. A wider gutter reduces column width, which changes the measure and the line count.
Print and digital differences in the decision
The medium shapes the choice, because the constraints differ.
- Print has a fixed page size, so you can calculate every dimension in advance. You also have to plan spreads, inner and outer margins, and bleed. A grid that works on one page may need adjusting across a spread.
- Digital has no fixed width, so you design a system with rules, not a single page. Choose the column counts at each breakpoint and the minimum and maximum widths. Check the measure at both extremes, since text in a wide container can run past 100 characters even if it looks fine at 800 px.
If a project ships in both media, design the print grid first when the print page size is fixed. Then derive the digital column counts from the same proportions where you can. The mapping will not be exact, so test both.
Document the grid
A grid that lives only in one designer's head cannot be maintained. Record at least:
- Page or container size, margins and gutter.
- Column count, module size and row height.
- Baseline unit and the type sizes that align to it.
- The standard spans for text, images and captions.
- Known exceptions and the reason for each.
In CSS, the same record can live in custom properties so the code and the documentation do not drift apart.
:root {
--columns: 12;
--gutter: 1.5rem;
--baseline: 1.5rem;
--max-width: 72rem;
}
.layout {
display: grid;
grid-template-columns: repeat(var(--columns), 1fr);
column-gap: var(--gutter);
max-width: var(--max-width);
margin-inline: auto;
}Exercise
A 4-column modular grid uses a 24 px line height and a 24 px gutter. Your designer proposes 100 px module heights. State whether the rows will stay on the baseline grid, and give a module height that will.
Show answer
The row pitch is the module height plus the gutter, which is 100 + 24 = 124 px. That is not a multiple of 24 (124 / 24 is about 5.17), so each row drifts off the baseline. A module height of 120 px gives a pitch of 144 px, which is exactly 6 lines, so the rows stay aligned.
Exercise
You are laying out a quarterly report with long running text, footnotes, wide tables and an occasional full-width chart. Choose a grid type and column count, and justify the choice in two or three sentences.
Show answer
A multi-column grid with 6 columns fits well. Body text can span 4 columns for a comfortable measure, with footnotes or notes in the remaining 2. Tables and charts can span all 6. Six divides evenly into 2, 3 and 6, so it also supports halves and thirds for figures. A modular grid is less suitable because the content is not made of equal repeating blocks.
Exercise
Over the first ten pages of a layout, you have broken the grid on seven of them. What does this suggest, and what should you do?
Show answer
Breaking the grid on most pages means the grid does not match the content, so the breaks are not deliberate exceptions. Identify what the broken pages have in common, such as a certain image shape or span, then revise the grid so it supports those cases. Change one variable at a time, re-test with real content, and document the result.