Grid Anatomy
The parts of a grid system and how they work together.
Classic 12-column grid
Columns divide horizontal space into equal units. 12 columns is common because 12 divides evenly by 2, 3, 4, and 6 - enabling many layout combinations.
Key point: 12-column grid: flexible and versatile
Gutters = space between columns
Gutters create breathing room between columns. Consistent gutter width (16px, 24px, 32px) establishes visual rhythm across the layout.
Key point: Consistent gutters = consistent rhythm
Margins = space outside the grid
Margins are the space between the grid and viewport edges. They prevent content from touching screen edges and provide visual breathing room.
Key point: Margins protect content from edges
Rows organize vertical space. Unlike columns, row heights are often content-driven rather than fixed. CSS Grid handles both dimensions.
Key point: Rows can be fixed or content-driven