Sub topic 2
The parts of a grid
This chapter names every part of a layout grid and shows how the parts relate. Later chapters calculate and build grids, so the vocabulary here has to be exact. It assumes you know basic typography terms (point size, leading, line length). It also assumes you have used a layout tool such as InDesign, Affinity Publisher or Figma.
What a grid is made of
A layout grid is a set of guides that divides a page or screen into regions. Content is placed against those guides instead of at arbitrary positions. Every grid, from a single-column book page to a 12-column web layout, is built from the same small set of parts.
| Part | What it is | What it controls |
|---|---|---|
| Margin | Empty space between the page edge and the content area | Breathing room, trim safety, binding |
| Column | A vertical strip that holds text or images | Line length, horizontal placement |
| Gutter | The space between two adjacent columns or rows | Separation between content blocks |
| Row | A horizontal strip that crosses the columns | Vertical placement and height |
| Module | One cell where a column and a row cross | The smallest unit of placement |
| Flowline | A horizontal alignment guide that crosses columns | Where blocks start and stop vertically |
The sections below take these parts in turn.
Margins
Margins are the four bands of empty space between the content area and the edge of the page. The area inside them is often called the live area or type area. Margins do three jobs:
- They keep content away from the trim edge, so a slight cutting error in print does not clip text.
- They give the reader's thumbs somewhere to rest on a printed page, and they stop text from touching the edge of a screen.
- They frame the content. Wide margins feel calm and formal. Narrow margins feel dense and efficient.
Margins do not have to be equal. Books often use a larger bottom margin than top margin, so the type area sits slightly above center. Facing pages also treat the inner margin (toward the binding) differently from the outer margin. A later chapter covers that in detail.
Columns
A column is a vertical strip inside the live area. Text flows down a column and then continues at the top of the next one. Images are sized to fit within one column or to span several.
The number of columns is a design decision with direct consequences:
- One column suits long continuous reading, such as a novel.
- Two or three columns suit magazines and reports, where shorter lines read faster.
- Four to twelve columns give more placement options. Content then spans several columns at a time, and the extra columns are what make flexible layouts possible.
A grid with many narrow columns is not a layout with narrow text. Text usually spans two or more of the narrow columns, so the count measures how finely you can place things, not how wide a line is.
Gutters
A gutter is the empty space between adjacent columns. It keeps the end of one line of text from running into the start of the next column.
Gutter width should relate to the type size. If the gutter is too narrow, the eye jumps across the gap and reads two columns as one line. If it is too wide, the columns drift apart and the page looks loose. A common starting point is a gutter equal to one to two line heights of body text.
Two terms cause confusion here:
- In print, "gutter" sometimes means the inner margin where facing pages meet at the binding. Many tools, including InDesign, use "gutter" for the column space and "inside margin" for the binding side.
- In CSS,
gap(orcolumn-gapandrow-gap) is the gutter between grid tracks.
Rows and modules
A row is a horizontal strip that crosses the columns. A grid with only columns is a column grid. Add rows and the grid becomes a modular grid, because the rows and columns together cut the live area into cells.
A module is one such cell. It is the smallest block of space you can place content in. Modules are separated by the column gutter horizontally and by a row gutter vertically. Most modular grids use the same value for both so the white space looks even.
A module can hold a small image, a pull quote, a few lines of text or a figure with its caption. Larger elements span several modules, always aligned to module edges.
Flowlines
A flowline is a horizontal guide that runs across the columns. It marks where a block of content starts or stops. Flowlines are the horizontal counterpart of the column edges. They let you hang an image from the same line on every page, or start a heading at the same height each time.
In a modular grid, the module edges act as flowlines. In a column grid with no rows, you add flowlines by hand, for example one a fixed distance below the top margin for running heads and one at the top of the body text.
Seeing the parts together
The diagram shows how the parts nest. The page contains margins and the live area. The live area is divided into columns and rows. Where a column crosses a row, a module forms. Gutters sit between the columns and between the rows, and flowlines run along the row edges.
Measuring the parts
Each part has a size, and the sizes add up to the page. For a single row of columns, the live-area width equals the sum of the column widths plus the gutters between them. Note that there is always one fewer gutter than there are columns.
The function below turns that relationship into numbers. It returns the live-area width and the width of one column for a given page.
def describe_grid(page_width, margin, gutter, columns):
"""Return live width and column width for equal side margins."""
live = page_width - 2 * margin
gutters_total = (columns - 1) * gutter
column = (live - gutters_total) / columns
return live, column
live, column = describe_grid(210, 20, 5, 4)
print(f"live area: {live} mm")
print(f"column: {column} mm")
print(f"check: {4 * column + 3 * 5} mm")For an A4 page (210 mm wide) with 20 mm margins, 5 mm gutters and four columns, the live area is 170 mm and each column is 38.75 mm. The check line adds four columns and three gutters and returns 170 mm, which matches the live area. A later chapter develops this calculation fully, including modules and row heights.
The same parts in CSS
CSS Grid uses different words for the same parts. A grid container holds tracks (columns and rows), the space between tracks is the gap, and each cell where tracks cross is a grid cell. Margins map to padding or to the auto margins on the container.
.page {
display: grid;
grid-template-columns: repeat(4, 1fr); /* four columns */
grid-template-rows: repeat(3, 10rem); /* three rows */
gap: 1rem; /* gutters */
max-width: 60rem;
margin-inline: auto; /* side margins */
padding: 2rem; /* live-area inset */
}This produces a 4 by 3 grid of twelve modules. The gap value sets both the column gutter and the row gutter. The grid lines between tracks play the role of flowlines, and CSS lets you place an element by naming its start and end lines.
Common errors
- Counting gutters wrong. Four columns have three gutters, not four. Using four makes every column too narrow by a small amount, and the grid then does not fill the live area.
- Treating margins as part of the grid. Margins sit outside the columns. If you add them to the column math twice, the grid overflows the page.
- Mixing up gutter and inner margin. In a facing-page document, changing the wrong setting shifts the whole type area toward the spine.
- Choosing the column count before the content. A twelve-column grid is flexible, but if your content is one long article, a single wide column is the better fit. The next chapters tie the count to line length and content type.
- Unequal gutters by accident. A horizontal gutter of 5 mm and a vertical gutter of 8 mm makes modules look unevenly spaced. Keep them equal unless the content demands otherwise.
Check your understanding
Exercise
A page is 297 mm wide. It has 15 mm margins on both sides, 6 mm gutters and 6 columns. How wide is one column? How many gutters does the grid have?
Show answer
The live width is 297 - 2 x 15 = 267 mm. Six columns have 5 gutters, which total 30 mm. The remaining 237 mm divided by 6 gives a column width of 39.5 mm.
Exercise
What is the difference between a column grid and a modular grid, and which part of a grid creates the difference?
Show answer
A column grid divides the live area only with vertical columns. A modular grid also divides it with rows, so columns and rows cross to form modules. The rows (with their gutters) create the difference.
Exercise
A colleague says a 12-column grid forces body text to be very narrow. What is wrong with that statement?
Show answer
The column count does not set the line length. Text spans several columns, so a body paragraph might cross six or eight of the twelve columns. More columns give more choices for placement and width, not narrower text.