Search code examples
csscss-reset

CSS style resetting


Usually in order to get the style the same for every browser you see some sites have something like this:

html, body, div, span, object, ... { margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit; vertical-align: baseline; }

Is there a reason why they don't simply use:

*, html { ... }


Solution

  • The more broad a set of CSS rules is, the more processing it'll take to load them. The best ruleset is also the most specific.