O'Reilly logo

Sass and Compass Designer's Cookbook by Bass Jobsen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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:

  1. 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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required