Sub topic 2
Multi-Column Grids
Assume you know basic typography terms such as leading and line length, and can use a layout tool. The examples use simple CSS and Python.
Multi-column grids
A multi-column grid divides the usable page width into vertical columns separated by gutters. A gutter is the empty space between columns. Text can occupy one or more columns, while images can span several columns.
Use narrower columns for comfortable reading and wider spans for headings, images, or data tables. The grid provides alignment without forcing every element to have the same width.
Baseline grids and vertical rhythm
A baseline grid is a repeated set of horizontal lines that text baselines align to. This alignment creates vertical rhythm across adjacent columns. Choose a baseline interval, often related to the body text’s line height, then make paragraph spacing and object positions multiples of that interval.
Do not force every object to align when the content becomes cramped. Readability and hierarchy take priority over mechanical alignment.
Calculating column and module sizes
For equal columns, subtract both margins and all gutters from the page width. Divide the remainder by the column count.
def column_width(page_width, margin, gutter, columns):
usable = page_width - 2 * margin
return (usable - (columns - 1) * gutter) / columns
print(column_width(210, 20, 5, 4)) # 38.75 mmA modular grid adds horizontal rows to the columns. The intersections form modules. Row height should account for the baseline interval, while gutters separate both columns and rows.
Modular grids
Modular grids suit dashboards, catalogs, posters, and editorial pages with varied content. A feature image might occupy two columns by three rows. Smaller modules can hold captions, facts, or short text blocks.
Placing content across modules
Describe spans by their starting column and size. Keep related content aligned to shared edges, then break the grid only when emphasis requires it.
.layout {
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-template-rows: repeat(3, 8rem);
gap: 1rem;
}
.feature { grid-column: 1 / span 2; grid-row: 1 / span 3; }
.caption { grid-column: 3 / span 2; grid-row: 1; }Exercise
A 210 mm page has 20 mm margins, 5 mm gutters, and four equal columns. What is each column’s width?
Show answer
38.75 mm. Calculate (210 - 2 × 20 - 3 × 5) ÷ 4.