October 25, 2012

Design Websites With A Grid System

When you first begin a web design project where do you start? Color scheme? Fonts? Probably not. Most of us start with a sketch outline of the site’s structure. A big part of this structure lies in the grid ‚ a vertical set of guidelines that help determine shape, placement of items and overall structure of each website. Grids are a tool for visual problem solving — they create layout boundaries: known relationships and constraints that define an environment wherein a design can occur. There are a variety of grid-based structures. Most commonly, a grid is made of multiple columns and gutters of equal widths. Grids can also be created from columns of varying widths to form bigger columns.

Column Grids

Column Gutters

Every vertical grid is comprised of two things ‚ columns and gutters. Columns are the wider divisions, while gutters are defined as the equal spaces between columns. Even when a grid contains columns of varying widths the gutter widths are often static. Web grids vary widely and there is no magic number of columns or width of gutters. Often web grids range from 2 to 12 columns. When using a vertical column-based grid, the lines are typically invisible and only known to the designer or developer. However, these lines do create a plane for all the objects ‚ text, images and even ads ‚ so that everything lines up neatly. This will create organization and an overall sense of harmony between elements.

Building A Grid

Grid System Templates for Designers

The first step in creating a grid is to set your size constraints — how wide will your page be? When designing the grid, think about how elements will live within the columns. Are you planning to design strictly in column and rows or is your grid going to be used more in a way that looks “less gridded?” Then think about flexibility in design ‚ how many columns do you want to work with. Ideally, you will work in sets of threes or fours, so that you have divisible groups that can be broken into smaller parts. When considering the number of columns in your grid, also take gutter widths into account. Commonly, gutters are 10 to 20 pixels wide. Then it is time to do the math. Determine your overall site width. Set a gutter width. Determine the number of columns. Take your overall width minus the gutter widths (keep in mind that you have one less gutter than total number of columns). Divide the remaining number by the total number of columns to get a width for each column.

So lets say I choose to design a layout with a width of 1140 pixels, a gutter size of 20 px, and I want 4 columns. That will give me 3 gutters each at 20px.

3 x 20 = 60px 1140px (Total width) – 60px (Total gutter width) = 1080px. Then take that number and divide by the number of columns. 1080px / 4 Columns= 270px.

Finally you are left with the width of each column in your layout.

(Total width of grid) – (Total gutter width) = Total width of columns (Total width of columns) / (Number of columns) = Width of each column.

Implementation

Thankfully, there are some great tools to help you get started with designing with a grid. They provide photoshop templates, calculation tools and examples to help you get started. Your designs will be greatly improved by using a grid as your foundation.
960 Grid System
1140 Grid System

Paul Weinert
Author

Paul Weinert is our founder, managing principal and spirit animal. He’s one of those odd people you meet that was born in Portland, grew up here and still lives here for some reason. If you had two words to describe Paul after meeting him, we’d bet you’d use “charmingly quirky”.

Paul started GRAYBOX in February 2009, and for the first four years, GRAYBOX had a blend of a contract staffing firm and a traditional agency. GRAYBOX then hired our first employees in 2012 and has been growing ever since. Professionally, Paul has a background in internet business consulting, working especially with mid-market ecommerce, healthcare, and tech companies. He worked as a user experience designer, web developer and internet marketer. Nowadays, Paul serves as our company visionary, team mentor and head of executive leadership — Paul is extremely proud of the entire team and the company. He’s constantly humbled by the team’s awesomeness and the caring community that’s sprung up from his initial ideas.

Beyond GRAYBOX, Paul is married, has two young boys and lives in NE Portland. He’s also an active foster parent, mentors other local entrepreneurs, and volunteers on local non-profit boards. Businesswise, aside from GRAYBOX, Paul has started a few other businesses and is an active investor in the local startup scene.

For the sheer joy of it, let’s play 2 truths and a lie:

  1. Paul firmly believes that any activity would be better if on a boat.
  2. Other than this whole Internet thing, Paul has basically no other skills or expertise in anything.
  3. Paul is rare unicorn, actually born and raised in Portland.