Reputation: 165
For some reason there is an unusual border on my page. I'm unable to find the cause for it in the code:
Any idea how this can be fixed?
Upvotes: 2
Views: 76
Reputation: 167250
Your body has extra margins. It is better to use a CSS Reset, a simple one:
* {margin: 0; padding: 0; list-style: none;}
Or just to body:
body {margin: 0; padding: 0; list-style: none;}
Upvotes: 0
Reputation: 47687
You have to update your <body>
styles like this:
body {
color: green;
margin: 0;
padding: 0;
}
And it's generally a good idea to use some kind of CSS Reset to avoid a lot of troubleshouting in different browsers.
Upvotes: 2
Reputation: 30473
All elements by defauls has some style. Tag body
by default has margin
not 0. So
body { margin: 0px; }
Upvotes: 0