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

Get Pragmatic Guide to Sass now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.