views:

202

answers:

5
+6  A: 

Your body margin isn't set to 0px, just that of html.

Daniel
html, body {margin:0;padding:0}
Jonathan Sampson
Not to be a repwhore, but I was first to answer ;)
Daniel
But the answer wasn't as detailed! I voted you up!
Rich Bradshaw
+6  A: 

You didn't set the body's style:

body {margin: 0px; padding: 0px; height: 100%;}
Greg
A: 

Oups I forgot to set body's padding ans margin ...

Sorry forget me ... or throw rocks at me ...

Ar3s
You should put your comments in the comment section on the question - not as a separate answer.
Rich Bradshaw
In fact I had answered before I read any other answer, they all came more or less as quickly as I figured my mistake out. And now I feel to lazy to delete my post and to add it as a comment ... ^^
Ar3s
+2  A: 

Set the margin to 0 on the body tag.

body {margin:0;}
Emily
+1  A: 

In addition - rather than adding:

padding: 0; margin: 0;

to every selector do it globally at the top of your CSS file:

* { padding: 0; margin: 0; }
Elle