Sub topic 9
Grids and alignment as balance tools
This chapter assumes you know what visual weight is, where the central axis and optical center sit, and the difference between symmetrical and asymmetrical balance. Basic CSS helps for the code, but the ideas apply in any layout tool.
Why grids help with balance
Balance depends on where weight sits relative to an axis. A grid gives you a fixed set of positions to place that weight. Without one, every element's position is a separate guess, and small errors add up to a layout that feels lopsided without any obvious cause.
A grid is a set of invisible guides that divide a page into columns, rows and margins. Alignment is the practice of placing element edges or centers on those guides. Together they make weight predictable. If two elements share an edge, the eye reads them as a group. If a heavy element sits on a column line, you can count how many columns of lighter material you need on the other side.
Parts of a grid
- Columns divide the width. Common counts are 4, 8 and 12 because they split evenly in many ways.
- Gutters are the gaps between columns. They keep neighboring elements from touching.
- Margins are the space between the content and the page edge.
- Baseline rows are horizontal lines that text sits on, which keep type aligned across columns.
Grids and symmetry
A symmetrical layout needs a grid that is itself symmetrical. A 12-column grid has its axis between columns 6 and 7. Anything centered on that line mirrors perfectly.
An odd column count, such as 5 or 7, puts the axis through the middle of a column. This suits a single central element, such as a headline or a logo.
.symmetric-grid {
display: grid;
grid-template-columns: repeat(12, 1fr);
gap: 1rem;
max-width: 60rem;
margin: 0 auto;
}
.symmetric-grid .headline {
grid-column: 4 / 10; /* columns 4-9: 3 columns each side of the axis */
text-align: center;
}The headline spans columns 4 to 9. Three columns remain on each side, so the block is centered on the axis.
Grids and asymmetry
An asymmetrical layout uses the same grid but fills it unevenly. A common method is to put a large, light element across most columns and a small, heavy element in the remaining ones.
.asymmetric-grid {
display: grid;
grid-template-columns: repeat(12, 1fr);
gap: 1rem;
align-items: start;
}
.asymmetric-grid .image {
grid-column: 1 / 8; /* 7 columns, pale */
background: #e8eef2;
min-height: 16rem;
}
.asymmetric-grid .callout {
grid-column: 9 / 13; /* 4 columns, dark and heavy */
background: #1b2a35;
color: #fff;
min-height: 8rem;
}Column 8 is left empty. That gap is negative space, and it separates the two blocks so the dark block reads as a distinct counterweight.
Alignment choices
Where you align content changes how stable the layout feels.
| Alignment | Effect on balance | Typical use |
|---|---|---|
| Center | Strong symmetry, formal, static | Invitations, titles, logos |
| Left edge | Strong vertical line, weight pulled left | Body text, articles |
| Right edge | Weight pulled right, less common in Latin text | Captions, side notes |
| Justified | Even edges on both sides, can leave uneven word gaps | Print columns |
A strong left edge acts like a visual axis. You can place it off-center and balance it with a heavy element on the right, which is the basis of many editorial layouts.
Common errors
- Near-alignment. Edges that miss each other by a few pixels look like mistakes. Either align exactly or offset by a clear amount.
- Too many alignment lines. If every element starts at a different position, the grid gives no help. Aim for a small set of lines.
- Ignoring optical alignment. A circle or a triangle placed exactly on a line can look shifted, because its visual mass is not at its edge. Nudge round and pointed shapes slightly past the line.
- Mixing center and left alignment in one block. The two axes compete and the block feels unstable.
Practice
Exercise
A 12-column layout has a dark 3-column sidebar in columns 1 to 3 and a pale text area. Which columns would you give the text area to keep the layout balanced, and what would you do with the remaining space?
Show answer
Give the text area columns 5 to 12 or 5 to 11, leaving column 4 empty as a gutter of negative space. The dark sidebar is heavy for its width, so a wider pale area on the other side balances it. If the text area still feels heavy on the right, leave the last column empty as a margin.
Exercise
A logo is centered with text-align: center but still looks off to the left. Give one likely reason and one fix.
Show answer
The logo may contain a heavy shape on its right or left, so its visual center differs from its geometric center. Fix it by nudging the logo a few pixels toward the lighter side until it looks centered.