Sub topic 1
Why layouts use grids
A layout grid is a set of invisible guides that decides where text, images and white space can sit on a page or screen. This chapter explains what a grid does for a design and what it costs. Later chapters cover how to build the grids.
Prerequisites
This chapter assumes you already know:
- Basic typography terms: point size, leading (the vertical distance between lines of text) and line length.
- How to place text frames, images and guides in a layout tool such as InDesign, Affinity Publisher or Figma.
- Basic HTML and CSS, enough to read a short style rule. You don't need to write any.
You don't need to know how to calculate a grid yet. That comes in a later chapter.
What a grid is
A grid is a system of horizontal and vertical guides. Every element you place is positioned and sized against those guides. The guides do not print and do not show on screen. They exist only so that decisions made in one part of the layout stay consistent with decisions made elsewhere.
Three kinds of grid appear in this tutorial:
- A single-column grid has one text area inside the margins, as in a novel.
- A multi-column grid divides the width into several vertical columns, as in a newspaper or a magazine.
- A modular grid divides the page into columns and rows at once, which makes a lattice of equal cells.
All three serve the same purposes, and the sections below describe them.
What a grid does for a layout
Consistency across pages
A reader moves through many pages or screens. If the headline sits in a different place on each one, the reader has to re-orient every time. A grid fixes recurring positions, such as where the page number, running head, first line of body text and image edges go. The reader learns the structure once and then reads the content.
Alignment you can see
Edges that line up read as deliberate. Edges that nearly line up read as mistakes. A difference of 1 mm between two image edges is too small to look intentional, and too small to look clearly different. A grid removes that ambiguity because every edge has a defined place to land.
Faster decisions
Without a grid, each new element raises open questions about its width, its position and its distance from its neighbours. With a grid, most of those questions already have answers. You choose among a small set of allowed positions and sizes. A designer working on a 200-page catalogue makes thousands of placement decisions, and a grid cuts the work for each one.
Teamwork and handoff
A grid is a shared specification. A second designer can add a page that matches the first without asking about it. A developer can turn the grid into CSS. An editor can see that a pull quote will fit across two columns. The grid is written down, so the knowledge does not stay in one person's head.
Readable text
Grids support legibility because the column width limits line length. Lines that run too long make it hard for the eye to find the start of the next line. Lines that run too short break the reading rhythm. The next chapters treat line length in detail. Here, note that the grid is where you set that limit once, for the whole publication.
Flexibility inside a structure
A grid is not a template with fixed slots. A 12-column grid can hold an article across eight columns and a sidebar across four. The same grid can hold three equal blocks of four columns each. Constraint and variety exist together, because the grid defines the allowed positions and you choose among them.
How a grid works in a layout
Consider one page with a headline, a main image, body text and a caption. Without a grid, you place each element by eye. With a grid, you ask which columns each element spans.
The loop from "Does the content fit?" back to "Define the grid" matters. A grid is derived from content and format, and it can be revised when the content demands it. The last chapter in this tutorial returns to that point.
A concrete check: do edges land on the grid?
A grid is a numeric structure, so you can test a layout against it. The script below builds the column edges for an A4 page with 20 mm margins, 5 mm gutters and four columns of 38.75 mm. It then checks whether given x positions land on a column edge. You will see how to derive those numbers in the chapter on grid calculations. For now, treat them as given.
def column_edges(margin, column, gutter, columns):
"""Return (left, right) x positions in mm for each column."""
edges = []
x = margin
for _ in range(columns):
edges.append((x, x + column))
x += column + gutter
return edges
def on_grid(x, edges, tolerance=0.5):
"""True if x sits within tolerance of any column edge."""
return any(
abs(x - left) <= tolerance or abs(x - right) <= tolerance
for left, right in edges
)
edges = column_edges(margin=20, column=38.75, gutter=5, columns=4)
print(edges)
# [(20, 58.75), (63.75, 102.5), (107.5, 146.25), (151.25, 190.0)]
for x in (20, 63.75, 70, 190):
print(x, on_grid(x, edges))
# 20 True
# 63.75 True
# 70 False
# 190 TrueThe last right edge is 190 mm, which equals the page width of 210 mm minus the 20 mm right margin. That is a quick sanity check that the numbers describe a closed system. The position 70 mm is off the grid, so an element starting there would look slightly misaligned against everything else.
Design tools do this kind of snapping for you. Seeing the numbers shows what snapping enforces.
The same idea on screen
On the web, the grid is a layout rule in CSS, not a guide in a design tool. This rule defines a 12-column grid with a fixed gap and places two elements on it.
.columns {
display: grid;
grid-template-columns: repeat(12, 1fr);
column-gap: 1.5rem;
max-width: 72rem;
margin-inline: auto;
}
.article { grid-column: 1 / span 8; }
.sidebar { grid-column: 9 / span 4; }The article starts at column line 1 and spans eight columns. The sidebar starts at line 9 and spans four. Because both elements refer to the same lines, their edges and the gap between them stay aligned if the container width changes. This is why the same grid logic applies to both print and screen, even though the tools differ.
What a grid costs
A grid has real downsides, and you should know them before you commit to one.
- Setup time: a grid has to be designed before the layout starts, and a poor one causes problems on every page.
- Risk of monotony: if every page uses the same positions in the same way, the publication looks repetitive. Varying the spans and the white space avoids this.
- Mismatch with content: a grid built for photographs may not suit long tables or code listings. If the content changes, the grid may need to change too.
- False confidence: a layout can follow its grid exactly and still be hard to read. Grid alignment is necessary for a tidy layout, but it does not guarantee a good one.
A later chapter covers breaking the grid on purpose. Breaking it works only if the rest of the layout follows the grid closely enough for the break to be noticed.
Print and digital goals
The purpose of a grid is the same in print and on screen, but the constraints differ.
| Concern | Digital | |
|---|---|---|
| Page size | Fixed, such as A4 or 210 × 297 mm | Variable with the viewport |
| Units | Millimetres, points, picas | rem, %, fr, px |
| Margins | Inner and outer, because of binding | Usually equal left and right |
| Edge handling | Bleed and trim | Overflow and scrolling |
| Revision after release | Costly, requires reprinting | Cheap, requires a deploy |
The table is a preview. The chapters on print spreads and on responsive grids work through each row.
Summary of reasons
A layout uses a grid to:
- Keep positions consistent across pages or screens.
- Make alignment deliberate and visible.
- Speed up placement decisions.
- Give teams a shared, written specification.
- Control line length and so protect readability.
- Allow variety within a defined set of positions.
The next chapter names the parts of a grid, so that you can describe and build one precisely.
Exercise
A colleague says, "A grid makes every page look the same, so we shouldn't use one." Give two arguments from this chapter that respond to this, and name one real cost of a grid that the colleague could fairly point to.
Show answer
First, a grid defines allowed positions, not fixed slots, so a 12-column grid can hold an 8 + 4 article-and-sidebar page on one spread and three 4-column blocks on another. Variety comes from choosing different spans on the same structure. Second, the grid keeps recurring elements, such as page numbers, running heads and image edges, in predictable places, and that consistency helps readers move through the publication. A fair cost to name: setup time, a risk of monotony if spans are never varied, or a mismatch when the content does not suit the grid (for example, wide tables on a grid designed for photographs).
Exercise
Using the A4 grid from this chapter (20 mm margins, 5 mm gutters, four 38.75 mm columns), would an image whose left edge sits at 107.5 mm be on the grid? What about one at 110 mm, using a tolerance of 0.5 mm? Explain your answer.
Show answer
The image at 107.5 mm is on the grid, because that is the left edge of the third column (20 + 2 × (38.75 + 5) = 107.5). The image at 110 mm is not. It is 2.5 mm from the nearest edge, which is more than the 0.5 mm tolerance, so it would look slightly misaligned against elements that start at 107.5 mm.