The Right Way to Reset CSS

The problem is each browser sees margins, and padding differently. Some browsers add a space between your page and the window. This will make your page sit away from where you want it. In order to make everyone see it the same you do a reset.

Bad CSS Reset

The most popular method and what I have used up until recently is:

*{margin:0;padding:0;}

* {
margin:0;
padding:0;
}

This has turned out to be a terrible way to reset a page. It resets everything and makes you have to write more code then needed. By using such an extreme reset the browser drops all its helpful spacing. With my favorite method out the window, what should I use instead?

Right CSS Reset

Everyone has their method for reseting css. Different CSS Frameworks handle resets a little different. The one that looks most interesting is the Meyer Reset. It takes most of the elements and strips them down to their bare essentials. This allows you the website guy… or gal, to build the site the way you want it.

I must admit this is not as quick as the method I have always used, but it makes designing easier. I will not be able to code it without looking at my notes.