2

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?

3 Answers 3

2

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.

0

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

body { margin: 0px; }
0

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;}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.