O'Reilly logo

Pragmatic Guide to Sass by Michael Lintorn Catlin, Hampton Catlin

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

26Resetting: Much Easier with Compass

Compass comes with a really handy and super-robust reset style sheet built in. The advantage of using it is that it is far more complete than Eric Meyer’s original reset CSS—and it includes a lot more browser tweaks. Plus, since Compass is a collection of libraries, we don’t actually have to keep a file around anymore. This keeps our code a lot cleaner.

There are two types of reset. The first is global reset, which resets all the CSS. All you have to type is @import "compass/reset";. Most imports in Compass don’t actually cause any styles to get printed in your style sheet, but this is a special case and it happens automatically. The CSS rendered is pretty much the same as the one we previously saw in Task ...

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