-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

Mastering CSS
By :

The next logical progression when learning CSS is moving to a CSS preprocessor, like Sass or Less. CSS preprocessors allow you to write CSS using programming features like nesting, imports, variables, and mixins that get compiled down to regular CSS. Another logical step in front end development is learning JavaScript. First though, let's talk about the CSS preprocessor, Sass.
I've used both Less and Sass, but I've been using Sass for a while now. When I started to create the course materials for this book I had almost forgotten what it was like to write CSS without Sass. Needless to say, writing CSS is much easier using Sass. It keeps your code much more organized and clean, and I highly recommend it. Let's go over some of the notable features of Sass.
One simple yet powerful feature of Sass is variables. Let's set up variables called $blue
, and $red
which respectively equal the colors I've been using throughout the site for basically anything you...