Daniel Saad
Daniel Saad

Reputation: 165

Unusual "border" around page showing up

For some reason there is an unusual border on my page. I'm unable to find the cause for it in the code:

http://danie1.me/temp/

Any idea how this can be fixed?

Upvotes: 2

Views: 76

Answers (3)

Praveen Kumar Purushothaman
Praveen Kumar Purushothaman

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

Zoltan Toth
Zoltan Toth

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

Danil Speransky
Danil Speransky

Reputation: 30473

All elements by defauls has some style. Tag body by default has margin not 0. So

body { margin: 0px; }

Upvotes: 0

Related Questions