Everything at your fingertips

Grid Patterns

This guideline explains how a flexible, percentage-based grid works and how you can use it to design a Zionsbancorp Web Application.

Overview

You can do this with out being limited by a "Bootstrap" Grid by creating 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.

These Pattern Library pages are an example of how grid columns work by creating the Grid in the Core CSS doc without 'Bootstrap'.These Pattern Library pages are an example of how grid columns work by creating the Grid in the Core CSS doc without "Bootstrap".

Spacing and 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.

You change the sizes at different breakpoints to give the best possible layout for viewing our content in the Media Queries of the CSS.

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 display.An example of how container scales with fixed margins display.

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 a good baseline.

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



Grid Sizes

Grid "Groups" use the following breakpoints, where there are big changes to the grid. This covers all screen widths across many devices. From 1008px - 1279px the grid should remain a fixed at 1008px and then snap to 1280px.

  • Group 1:  0 - 399px
  • Group 2:  400px - 599px
  • Group 3:  600px - 1007px
  • Group 4:  1008px+
  • Group 5:  1280px+
Global Breakpoints up to our maximum width of 1280px. Global Breakpoints should be set to a 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 1 0-399px 8px 8px
Group 2 400px - 599px 16px 8px
Group 3 600px - 1007px 16px 16px
Group 4 Fixed 1008px+ 16px 16px
Group 5 Fixed 1280px+ 16px 16px

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.