0

For example

body { margin:0;  }

renders differently than no .css for the body element.

user784637
  • 15,392
  • 32
  • 93
  • 156
  • 4
    It depends on the browser. The best way to be sure about these settings is by zeroing them out yourself with a reset.css See http://stackoverflow.com/questions/116754/best-css-reset – Mikael Härsjö Feb 08 '12 at 09:27
  • browsers render them differently, that's why a "CSS reset" exists. – Joseph Feb 08 '12 at 09:28
  • possible duplicate of http://stackoverflow.com/questions/32875/browsers-default-css - the top answer really sucks though – BoltClock Feb 08 '12 at 09:30
  • @BoltClock You recommend a *normalizer* rather than a *reset*? – alex Feb 08 '12 at 09:31
  • @alex: I like normalize.css but that's not relevant. I'm referring to the fact that the top answer doesn't answer the question. – BoltClock Feb 08 '12 at 09:34
  • @BoltClock Oh yes, but still helpful. – alex Feb 08 '12 at 09:36
  • @BoltClock: [ಠ_ಠ](http://stackoverflow.com/questions/311052/setting-css-pseudo-class-rules-from-javascript/311071#311071) (I'm sorry, I couldn't resist. But seriously, please kill it with fire. Question: How do I set CSS pseudo-class rules from JavaScript? Answer: Here's a link to some irrelevant documentation saying it can't be done.) – thirtydot Feb 08 '12 at 10:07

1 Answers1

0

The HTML5 Boilerplate uses a great "normalizing"-css. Give it a try.

Christoph
  • 50,121
  • 21
  • 99
  • 128