Using a CSS Reset
When talking about cascade in CSS, there will no doubt be a mention of the browser default settings getting a higher precedence than the author's preferred styling. When writing Sass code, the compiled CSS code will overwrite the browser's default styling. In other words, anything that you do not define in your Sass code will be assigned a default styling, which is defined by the browser. This behavior plays a major role in many cross-browser issues. To prevent these sorts of problems, you can perform a CSS Reset, or a CSS Reset alternative such as Normalize.css.
Getting ready
In this recipe, you will use
Normalize.css
as an alternative for other CSS Resets. You can download Normalize.css
at https://necolas.github.io/normalize.css/. After downloading the file you can compile your code with the Ruby Sass compiler. The Installing Compass recipe of Chapter 1, Getting Started with Sass describes how to install Compass for command line usage on your system.
How to do it...
Perform...