Grid System
Written by Andy Sim
Last updated
A grid system is a set of invisible columns and rows used to line up everything on a page, so that text, images and buttons sit in a tidy, consistent layout.
Designers usually divide the page into 12 columns with equal gaps and place items across a number of columns. On a phone the grid shrinks to one or two columns, so the same content reflows. In CSS this is done with CSS Grid or Flexbox, or with a framework such as Bootstrap.
Examples
- Three service boxes, each four columns wide, on a computer.
- The same boxes stacked in one column on a phone.
- A text column and an image column of different widths, aligned to the same edges.
Why it matters for your website
A grid makes a site look orderly and professional and keeps the design consistent as pages are added. It also makes responsive design far easier to get right.