Search code examples
cssbourbonneat

How to get rid of page margins using Neat and Bourbon


Using Bourbon and Neat, it seems to add an 8 pixel pad around the page by default. What is the solution to get rid of that padding and make the page content extend to use the entire width and height of the page?


Solution

  • Using a reset stylesheet is something that you should always include as a part of your stylesheets. This idea was originally proposed by Eric Meyer in 2007.

    The goal of a reset stylesheet is to reduce browser inconsistencies in things like default line heights, margins and font sizes of headings, and so on.

    His stylesheet has been ported to SASS and there are other reset stylesheets available:

    Eric Meyer's: https://gist.github.com/trey/3524

    Hampton Catlin's: https://gist.github.com/hcatlin/1027867

    normalize can also be used. A list of the popular reset and normalize stylesheets can be found at http://cssreset.com/.