Browser support
People do not always use the latest version of a web browser. In this recipe, you will learn why you can use mixins or mixin libraries to add cross-browser support to your multiple column layout.
Getting ready
To compile the SCSS of this recipe, you should have the Ruby Sass compiler installed. The Installing Sass for command line usage recipe of Chapter 1, Getting Started with Sass, describes how to install Ruby Sass on your system. You can inspect the final results in any modern web browser.
How to do it...
Perform the following steps to get grips on creating cross-browser CSS code:
Create your main project file called
main.scss
. This file should import the column partial file. So,main.scss
should contain a SCSS code like that shown here:$grid-gutter-width: 15px; @import 'components/columns'; .columns { @include content-columns(3); }
The column partial, the
components/_columns.scss
file, should contain the mixin that creates your content columns. The SCSS code in this file...