Grid

This guideline explains how our flexible, percentage-based grid works and how you can use it to design a BBC website.

Overview

We use a flexible grid that has percentage-based columns, fixed margins and gutters. The columns are used to adjust the layout, making the best use of the space available.

An example of how some of the grid columns work.An example of how some of the grid columns work.

Spacing & Layout

The grid uses fixed margins and gutters to help control the proportion and balance of the page. The margins and gutters are set to 8px for small screens and 16px for larger screens.

We change the sizes at different breakpoints to give the best possible layout for viewing our content.

For large screens we set the grid to a maximum width of 1280px, giving a content area of 1248px.

An example of how our container scales with fixed margins.An example of how our container scales with fixed margins.

Creating layouts

Any number of columns can be used to suit the content and create interesting layouts at different widths.

In the browser the columns will be built with percentages and will be 100% width by default. If required the percentage can be changed and columns can be introduced. 

This provides a large amount of flexibility to suit the content on any device.

An example of this would be with an article page. On a large device, the main reading column could be sized at 60% and the supporting content can be placed in outer columns that are both sized at 20%. Providing a centralised reading experience with a suitable line-length.

An example layout using three flexible columns.An example layout using three flexible columns.

Baseline

Spacing between components and elements should always be at least 8px – this is our baseline.

This baseline helps with the vertical alignment and spacing of content.

Grid Sizes

Our ‘Grid Groups’ use the following breakpoints, where there are big changes to the grid. This covers all screen widths across many devices.

  • Group 1 - 0 – 399px
  • Group 2 - 400px – 599px
  • Group 3 - 600px – 1007px
  • Group 4 - 1008px+
  • Group 5 - 1280px+

From 1008px - 1279px the grid should remain a fixed at 1008px and then snap to 1280px.

Our Global Breakpoints up to our maximum width of 1280px.Our Global Breakpoints up to our maximum width of 1280px.

Depending on the device width, we apply specific margin and gutter sizes. Below are the required sizes for each Grid Group in pixels.

Grid Group Width Margins Gutters
Group 10-399px8px8px
Group 2400px - 599px16px8px
Group 3600px - 1007px16px16px
Group 4Fixed 1008px+16px16px
Group 5Fixed 1280px+16px16px

Considerations

The flexibility of the grid means you can create many different layouts and page types.

Design for the smallest sizes and lowest capabilities first. Then optimise for different screen sizes. Don’t make assumptions about the devices that are being used.

Start with a single column layout and then bring in more columns as the content needs it. Column sizes are percentage-based and should work to ratios such as halves, thirds, quarters and so on.

An example of using a component breakpoint.An example of using a component breakpoint.