# Grid System

> Hidden rows and columns on a page. They keep things lined up.

**Field:** Design  
**Category:** Foundations  
**Also known as:** Layout Grid, Design Grid, 12-Column Grid

## Think of it like

It is like the lines in a notebook. They help you write in neat rows.

## Definition

A grid system is a set of hidden lines that splits a page into columns and rows. Designers place text and images along those lines. It keeps sizes and gaps the same from page to page. Websites often use twelve columns, because twelve splits into halves, thirds and quarters. The reader never sees the grid, only the order it brings.

## Example

A news site uses a twelve-column grid. A main story spans eight columns, and a side list spans four.

## Example code

```css
.page {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
```

Twelve equal columns with a 24px gap between them, in CSS.

## Why it matters

A grid makes many pages look like one set. It also makes each new page quick to lay out.

## Common mistake

Treating the grid as a cage. It is a guide, and a picture can break out of it on purpose.

## Three principles

- **Hidden lines.** Columns, rows, gutters and margins.
- **Twelve is common.** It splits into halves, thirds and quarters.
- **A guide, not a cage.** Break it on purpose only.

## Related terms

- [Layout](https://learn.benibix.com/term/design/layout)
- [Grid Column](https://learn.benibix.com/term/design/grid-column)
- [Gutter](https://learn.benibix.com/term/design/gutter)
- [Modular Grid](https://learn.benibix.com/term/design/modular-grid)
- [Cascading Style Sheets (CSS)](https://learn.benibix.com/term/development/css)
- [CSS Grid](https://learn.benibix.com/term/development/css-grid)
- [Manuscript Grid](https://learn.benibix.com/term/design/manuscript-grid)

## Taught in

- [Grid Systems and Layout](https://learn.benibix.com/learn/design-foundations/grid-systems-and-layout): Design Principles, 8/11

![A page split into twelve tall columns with thin gutters between them and wide margins at the sides. A heading spans all twelve columns, and three cards below each span four.](https://learn.benibix.com/diagrams/grid-system.svg)

---

Source: https://learn.benibix.com/term/design/grid-system
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
