Layout Tips

Guides and Grids

It’s extremely helpful to establish columns, grids, and guides inside your design files. It makes it much easier to measure white-space for one, but also, developers have a lot of tools at their disposal to interpret those into responsive code. It communicates your intentions much more clearly.

Column Grids

example of a column-based layout

Columnar grids like this, with even columns and gutters, are a nice way to establish a uniform grid system across an entire website.

In Adobe XD, you can activate and customize a column system by selecting the artboard and turning on the “Layout Grid.”

They may not work for every design, but the concept can be adapted for non-symmetrical layouts using manually placed guides as well.

Two-dimensional Grids

example of a two-demensional grid layout

With the new CSS “Grid” feature, we can create two-dimensional grids as well. By “two-dimensional” we mean both columns and rows. These new features are pretty powerful, letting us specify dimensions of columns and rows by fractions, percentages, pixels, or let them adapt to their content.

You should have a basic understanding of Grid because if you make something look like a grid in your designs, we might try to use Grid to lay it out. Grid can do amazing things, but, there are little things it doesn’t do.

Cool Grid Stuff

Jen Simmons does a lot of thinking and advocating for all things web-layout. She’s a great resource for learning what Grid can do.

Not every grid cell needs content, they can be used for whitespace!

Whitespace with Grid by Jen Simmons

You can create overlaps!

Overlap with Grid by Jen Simmons

They’re very responsive, in new ways

Size things with minimums and maximums, but let them flex in-between.

Overlap with Grid by Jen Simmons

Here’s a couple of more general talks from Jen about web layout.

Modern Layouts: Getting Out of Our Ruts by Jen Simmons

Revolutionize Your Page: Real Art Direction on the Web by Jen Simmons

Here’s one last resource with some real world examples of layouts based on Grid.

Things Grid doesn’t do

Object Fit

Object-fit is a way to make content items fill their given space in both directions, similar to a background image. It inherently causes cropping of the video or image, so should be used with care.

Responsive Example of Using Object Fit

Cropping images with Object Fit

This can also be done with videos, making decorative videos much more flexible.

Real world patterns for using grid to achieve different layouts.

Grid by Example