Creative agency glossaryWeb, UX/UI, and Design

Grid Layout

A grid layout is the invisible structure of columns, rows and gutters that designers use to align content consistently across a page, a screen or a system.

What is a grid layout?

A grid layout is the scaffolding under a design. Before any text, image or button is placed, the designer divides the space into columns and rows separated by gutters, with margins at the edges, and then aligns every element to that structure. On a printed page it might be a twelve column grid with a baseline grid for the type; on a website it is usually a responsive grid that reflows from twelve columns on a desktop to four on a phone; on a social template it might be a simple three by three. The grid itself is never seen. Its effect is seen everywhere, in the sense that a page is calm, ordered and easy to read.

The idea is old. Scribes ruled their vellum, printers built pages on type bodies, and the Swiss designers of the mid twentieth century turned the grid into a discipline that still underpins most graphic design taught today. Web design inherited it, first through frameworks such as the 960 grid and Bootstrap, and now through CSS Grid and Flexbox, which let a browser lay out content on a true two-dimensional grid without the hacks of earlier years.

Why it matters

Why a grid layout matters

Readers feel structure before they understand content. A page built on a grid reads as professional and trustworthy even to someone who could not say why; a page without one reads as cluttered even when every element is fine on its own. For a brand the grid is part of the identity: the particular proportions, margins and rhythms that make a layout recognizably theirs across a website, a lookbook, a deck and a store. Consistency across hundreds of pages and dozens of designers is impossible without one.

Grids also make teams faster. When the columns are defined, a designer is choosing between a handful of sensible positions rather than infinite ones, a developer can build components that snap to the same measures, and a new piece of content drops into place without a redesign. On the web, a good grid is also the backbone of responsive design, since the columns define how content stacks as the screen gets smaller.

In practice

How a grid layout works in practice

  1. 01

    The grid is defined at the start of a design system. The team decides the number of columns, the gutter width, the outer margins and the breakpoints at which the grid changes for different screen sizes. A baseline grid for type is set so that lines of text align across columns. Components (cards, headers, image blocks, forms) are then designed to span whole columns, and the rules for how they stack on smaller screens are written down. In print, the same thinking produces a master page with columns, margins and a baseline.

  2. 02

    In the browser, CSS Grid and Flexbox implement the system directly, and design tools such as Figma carry layout grids so that the designer and the developer are working to the same measures. The grid is also where hierarchy lives. By letting an important element break across more columns, or sit alone in a row, the designer signals what matters without changing a single typeface or color. Breaking the grid deliberately, once a page has established it, is one of the oldest tricks in design for making something feel like an event.

Watch out

What people get wrong about grid layouts

Treating the grid as a cage. A grid is a baseline for consistency, and the best designers break it on purpose, for emphasis, once the structure has been established. A page that follows its grid slavishly can be as dull as one that has none. The second mistake is choosing the grid before the content. The right number of columns depends on what the page has to hold: a long form article wants a different structure from a product listing or a portfolio, and a grid imposed from a template will fight the content forever.

The third is forgetting the phone. A twelve column grid that was never resolved for a narrow screen produces the collapsed, cramped mobile layouts everyone has scrolled through. The fourth is ignoring the vertical. Column grids get most of the attention, but a baseline grid for type and consistent vertical spacing are what make a page feel finished.

Questions

People also ask

What is the difference between a grid layout and a flexbox layout?

In CSS, Grid lays out content in two dimensions (rows and columns at once) and Flexbox in one (a row or a column). Grid suits page-level structure; Flexbox suits the arrangement of items inside a component. Most modern sites use both.

How many columns should a grid layout have?

Twelve is the common default for desktop web because it divides evenly into halves, thirds, quarters and sixths. Tablets often use eight and phones four. The right number depends on the content and the breakpoints, not on convention.

Is a grid layout only for websites?

No. Grids structure print, presentations, packaging, social templates, environmental graphics and app interfaces. The same discipline of columns, gutters, margins and baselines applies wherever content has to be arranged on a surface.

Why do designers break the grid?

For emphasis. Once a page has established its structure, an element that steps outside it draws the eye and signals importance. The break only works because the grid exists; without the rule there is nothing to break.

Next to it in the glossary

  1. Front-End DevelopmentFront-end development is the building of the part of a website or app that runs in the browser: the layout, the typography, the motion and the interaction a visitor actually uses.
  2. Full StackFull stack describes a developer, or a team, able to build both the front end that visitors use and the back end that runs behind it.
  3. Graphics Interchange Format (GIF)A GIF (Graphics Interchange Format) is an image file format that supports simple animation and transparency, which made it the web's default for short looping clips.
  4. HeatmappingHeatmapping is the visualization of where visitors click, move, tap and scroll on a page, shown as warm and cool colors laid over the design.
  5. HierarchyHierarchy is the ordering of elements on a page by importance, so that a reader's eye and a search engine's crawler both understand what matters most.
  6. HomepageA homepage is the front page of a website, the one at the root of the domain, where a brand introduces itself and points visitors to everything else.

Every Web, UX/UI, and Design term →

In the work

Where it shows up

All our creations →

From the journal

Read around it

The journal →

Talking the talk is one thing

We make the work.

RIOT is a creative agency and production studio in New York. Strategy, brand, film, photography, design and the campaigns that carry them, made by one team. A few lines is enough to start: we read every brief the same day.

    Footage