Grid

Overview

A Grid is a group of columns that organize layouts and allow content to scale responsively based on screen size. They provide structure to pages and ensure optimal viewing experiences.

Sample component

Grid

Grid availability

Style

Grid specs

Usage

Grids are fundamental to how content is organized across various devices and screen sizes.

Columns

The number of columns that a grid contains is determined by the screen size.

Grid columns on desktop

A grid on large screens contains 12 columns

Grid columns on mobile

A grid on small screens contains one column

Gutters

Gutters are the spaces in between columns, they also change depending on the screen size. Gutters help separate content into layouts based on the amount of columns being used.

Grid gutters on desktop
Grid gutters on mobile

Margins

Margins are the spaces between a grid and the edges of the screen or window. They can be the same width or larger than gutters, depending on the screen size.

Large screens

The grid for large screens features 12 columns, like desktop and tablet. Column, gutter, and margin widths reduce as breakpoints get smaller.

Grid margins on desktop

Small screens

The grid for small screens features one column. In rare cases, content on small screens can sometimes be arranged in two columns.

Grid margins on mobile

Best practices

Don’t align every component to the grid, doing so might compromise the design of individual elements.

Grid content outside of grid

18px or larger text shouldn't exceed eight columns to maintain optimal readability.

Grid alignment issues

Responsive design

Large screens

The grid for large screens features 12 columns, like desktop and tablet. Column, gutter, and margin widths reduce as breakpoints get smaller.

Example of responsive grid on large screen Example of responsive grid on smaller screen

Small screens

The grid for small screens features one column. In rare cases, content on small screens can sometimes be arranged in two columns.

Example of responsive grid on large screen
Example of responsive grid on smaller screen

Breakpoints

A breakpoint is a predetermined screen size that has specific layout requirements. When breakpoints change, content will shift around to fit the adjusted layout.

Breakpoint name Size range Columns
Desktop, large 1680px 12
Desktop, medium 1440px 12
Desktop, small 1200px - 1439px 12
Tablet, large 992px - 1199px 12
Tablet, small 768px - 991px 12
Mobile, large 576px - 767px 2
Mobile, small 0px 1
© 2021-2024 Red Hat, Inc. Deploys by Netlify