Generating asymmetric layouts
With asymmetric layouts, you can create something unique and different that attracts attention. Most grid-based layouts are in some way symmetrical, because of the equal size columns of the grid. In this recipe, you will learn how to create asymmetric grids with columns of different widths, and how apply your designs to them.
Getting ready
First, install both Sass and Susy. Read the Installing and configuring Susy recipe of this chapter to find out how to do this.
How to do it...
Learn how to create asymmetric layout with Susy by performing the following steps:
- Create a file and directory structure, which should look as follows:
- Secondly, open the file the
main.scss
file and edit the SCSS code so that your SCSS code looks as follows:@import 'utils/variables'; @import 'base/normalise'; @import 'susy'; body { @include container(); padding: gutter(); } header { background-color: $header-background-color; color: $header-font-color...