tags:

views:

193

answers:

3

I'm not too sure if it is refered to as "Master Reset" but you'll know what I mean.

Ive been using

*{
      padding: 0;
      margin: 0;
    }

With no real problems that I have noticed but ive heard people say that its bad practice to use something like that. So ive looked into reset stylesheets and found this which seems good. But im not sure if its worth using that if there are no problems with using *{foo:bar;}

+2  A: 

I hear some people say that in some browsers it messes up with the styling of form inputs. I used to use this, until I stumbled across the meyer reset, which just seemed like a safer, proven approach.

LorenVS
Link to meyer reset?
Joe Philllips
http://meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/
Ben Alpert
The link above from @Ben Alpert is OUT OF DATE. Use the most current version instead - http://meyerweb.com/eric/tools/css/reset/index.html It never ceases to amaze me how often people link to the old version!@d03boy - The OP actually did post a link to the current Meyer reset. It's the "found this" link.
Andy Ford
+1  A: 

There are arguments for and against CSS resets. The general idea is that by "zeroing-out" all properties you're given a consistently blank canvas across all browsers to which you can apply your custom styles.

The problem with using a reset is that everything will be reset - so, you need to specify custom styles for everything, or at least everything you're going to be utilising within your site.

Read Snook's view: http://snook.ca/archives/html%5Fand%5Fcss/no%5Fcss%5Freset/

I often see sites with odd styles applied in commenting systems. For example, I might leave a comment with a <code> tag and because the site uses a css-reset the code tag has no special styling, making it visually pointless. This is only a problem with those full-on resets, like Meyers or Yahoos. Developers forget to apply styles to reset elements... Your flat-reset, while simple, has other ramifications.

In my opinion it's better to have no reset and just style each element on top of default styles offered by the browser.

J-P
A: 

I think this is just personal preference, the more complex your styles get the more it matters and a more specific reset style sheet may matter. All that matters is that your sites look like they should across all reasonable browsers (and by reasonable at this point I'm not including anything IE6 or prior).

I've switched to only a handful of resets to handle negative margins in extreme cases, otherwise most current browsers seem to be pretty consistent, a very different ecosystem than a few years ago.

Nick Craver