Sub topic 4
Using a Grid to Organize Text and Images
This chapter assumes you can set type in a design tool such as Figma or InDesign and know the basics of size, weight and leading. It covers how a grid gives text and images a shared structure.
Why a grid
A grid is a set of invisible guides that every element on the page snaps to. Without one, each image and text block is placed by eye, and small misalignments pile up. The page then looks arbitrary even if each piece is good. With a grid, the eye finds repeated edges and reads them as order.
The parts of a grid
| Part | What it does |
|---|---|
| Margins | Empty borders between the content and the page edge |
| Columns | Vertical bands that hold text and images |
| Gutters | Gaps between columns, so neighboring items don't touch |
| Baseline | Horizontal lines that keep text lines level across columns |
Placing type and images
Choose a column count that suits the content. Twelve columns divide into halves, thirds and quarters, so they allow many arrangements. Four or six columns suit a small poster or a phone.
Follow these rules when placing elements:
- Make each image span a whole number of columns. Its edges then sit on column lines.
- Set text blocks to span columns too. A body column of 4 to 6 columns out of 12 often gives a comfortable line length.
- Align the top of a text block with the top of a neighboring image, or with a clear point in it such as the horizon.
- Use the same margins on every page or screen of one project.
You can break the grid on purpose. An image that bleeds to the page edge, or a headline that spans the full width, stands out because the rest of the layout is regular.
Example in CSS
The same logic applies on the web. This layout puts an image across seven columns and its text across the other five.
.layout {
display: grid;
grid-template-columns: repeat(12, 1fr);
column-gap: 1.5rem;
max-width: 72rem;
margin: 0 auto;
padding: 0 2rem;
}
.layout img {
grid-column: 1 / span 7;
width: 100%;
height: auto;
}
.layout .text {
grid-column: 8 / span 5;
}Here the padding is the margin and column-gap is the gutter. The image and the text share one set of column lines.
Common errors
- Near-misses. An image that overshoots a column edge by a few pixels looks like a mistake, not a choice. Snap it fully or move it clearly off the grid.
- Ignoring gutters. Text that runs right up to an image feels cramped. Keep at least one gutter width between them.
- Too many grids. Mixing different column counts on one page breaks the shared edges.
- Uneven margins. Wide margins on one side and narrow ones on the other make the layout look off-center.
Exercise
A 12-column layout has a photo spanning columns 1 to 7. Which columns suit a text block placed beside it, and why?
Show answer
Columns 8 to 12, which are the five remaining columns. The text then starts on a column line next to the photo, shares its top edge, and leaves the gutter as the gap between them.