Good layouts rarely happen by accident. Behind most clean, readable web pages there is a grid system: an invisible structure of columns and spaces that aligns every element and keeps pages consistent. Understanding grids makes your designs more orderly, speeds up work and makes responsive design far easier.

In this guide we explain what a grid is, its components, why it is used, the main types, the 12-column and 8-pixel systems, responsive grids and breakpoints, CSS Grid versus Flexbox, how to apply a grid in design (including Figma), and examples for e-commerce, dashboards and social media.

What Is a Grid System?

A system that divides a design surface into columns, rows, spaces and margins so that content can be placed in an orderly way.

What Does Grid Mean?

What Does Grid Mean?

“Grid” means a lattice. In design it refers to a guide for alignment and layout.

What Are the Basic Components of a Grid System?

What Is a Column?

The main vertical divisions of the layout area.

What Is a Gutter?

The space between columns.

What Is a Margin?

The space between the grid and the outer edges of the screen.

What Is a Container?

The bounded area that holds the grid columns and main content.

What Is a Row?

A horizontal band of the layout that elements are placed in.

What Is a Module?

A unit formed where a row and a column meet, used in modular grids.

What Is a Baseline Grid?

A set of horizontal lines that text sits on, giving consistent vertical rhythm.

Comparison of Grid Components

ComponentRole
ColumnMain content area
GutterSpace between columns
MarginSpace at the screen edges
ContainerBoundary of the content
RowHorizontal band
ModuleColumn-row unit
BaselineVertical text rhythm

Why Is a Grid System Used?

  • It provides visual order.
  • It increases design consistency.
  • It strengthens content hierarchy.
  • It makes responsive design easier; see responsive web design.
  • It aligns design and development teams.
  • It lets new pages be prepared faster.

Types of Grid Systems

Manuscript Grid

A single large column, as in a book page, for text-heavy content.

Column Grid

Several columns, flexible for varied layouts.

Modular Grid

Columns and rows together forming modules, good for complex layouts such as dashboards and galleries.

Hierarchical Grid

An irregular grid shaped around the content’s needs.

Comparison of Grid Types

TypeBest for
ManuscriptLong reading
ColumnMost websites
ModularDashboards, galleries
HierarchicalCustom, editorial layouts

What Is a 12-Column Grid?

A flexible layout in which the page is divided into 12 vertical columns. It is popular because 12 divides evenly by 2, 3, 4 and 6.

12-Column Usage Examples

  • 12 = full width
  • 6 + 6 = two halves
  • 4 + 4 + 4 = three equal parts
  • 3 + 3 + 3 + 3 = four equal parts
  • 8 + 4 = main content and sidebar

What Is the 8-Pixel Grid System?

A system in which spacing and sizes are multiples of 8 pixels (8, 16, 24, 32…), which keeps spacing consistent and scales well across screens.

Advantages of the 8-Pixel System

Consistency, easier decisions, alignment with common screen sizes and simpler communication between designers and developers.

What Is a Responsive Grid System?

A grid that adapts to the screen size, changing the number of columns and spacing at different breakpoints.

What Is a Breakpoint?

The screen width at which the layout changes, for example from one column on mobile to several columns on desktop.

Fixed vs. Fluid Grids

Fixed Grid

Uses fixed widths. Predictable, but doesn’t adapt well.

Fluid Grid

Uses proportional widths that scale with the screen.

What Is CSS Grid?

A CSS layout system for two-dimensional layouts, in rows and columns.

Basic CSS Grid Properties

display: grid, grid-template-columns, grid-template-rows, gap, grid-column and grid-row.

A Responsive CSS Grid Example

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

CSS Grid vs. Flexbox

CSS Grid handles layout in two dimensions (rows and columns); Flexbox handles one dimension (a row or a column).

When Should CSS Grid Be Used?

For overall page layouts, card grids and anything that needs control over both rows and columns.

When Should Flexbox Be Used?

For aligning items in a single line, such as navigation bars, buttons and small components.

Grid System vs. Bootstrap Grid

The Bootstrap grid is a ready-made 12-column responsive grid implemented in a framework. A grid system is the broader design concept; Bootstrap is one implementation.

How to Use a Grid System in Design

  1. Determine the content hierarchy.
  2. Choose the container width.
  3. Decide the number of columns.
  4. Set gutter and margin sizes.
  5. Place the elements on the grid.
  6. Plan the mobile layout separately.

How to Use a Grid in Figma

In Figma, add a layout grid to a frame, choose columns, gutter and margin and design against it. See the best web design programs.

How to Use a Grid System in Web Design

Define the grid in CSS and place components in it, keeping consistent spacing. See how to prepare a professional website design, UX/UI in web design and interaction design. For roles, see what does a web designer do.

Grid Use in E-Commerce Sites

Product listing pages work well in grids: 2 columns on mobile, 3-4 on desktop, with consistent card sizes and spacing.

Grid Use in Dashboard Design

Modular grids help organize widgets and tables into a clear, scannable layout.

Grid Use in Social Media Designs

Grids keep carousels and feeds visually consistent.

Grid and Visual Hierarchy

Placing important elements across more columns, or in prominent positions, directs attention.

Grid and Typography

Align text to the grid and keep line lengths readable (often 50-75 characters).

Advantages and Disadvantages of a Grid System

Advantages: order, consistency, speed, easier responsive design, better team collaboration.

Disadvantages: can feel rigid if followed blindly; needs planning; breaking the grid should be deliberate.

Common Mistakes

  • Using inconsistent spacing
  • Not planning mobile layouts
  • Too many columns for small screens
  • Ignoring the baseline
  • Breaking the grid without a reason

For design help, see our web design service.

Frequently Asked Questions

What is a grid system?

A system that divides the design surface into columns, rows, spaces and margins so that content is placed in an orderly way.

What does grid mean?

In English it means lattice. In design it refers to an alignment and layout guide.

What is a grid system used for?

It aligns design elements, provides consistency between pages and makes responsive design easier.

What is a column?

The main vertical layout area into which the design area is divided.

What is a gutter?

The space between grid columns.

What is a margin?

The space between the grid and the outer edges of the screen.

What is a container?

The bounded area in which the grid columns and main content sit.

What is a 12-column grid?

A flexible layout system in which the page is divided into 12 vertical columns.

Why are 12 columns used?

Because 12 is easily divisible by 2, 3, 4 and 6, offering many layout options.