Anonymous 0

Hello! I am getting some extra space (about 5px) above the header and below the footer of my pages. I have been doing some research about this problem but still did nt find out where the problem is because I dont seem to have any problems with the html or css. It might be hidden somewhere but I am not getting errors at the w3c validator that could show me where the problem is.

Is it a bad thing if I put a negative margin to the header and negative margin to the footer to overcome this problem?

I really want to get rid of this space but I would like to know if this is a bad solution or if it will look bad to the eyes of other web designers.

I am still working on this website because I am trying to apply for web design jobs and would like to have as less errors as possible.

I would appreciate any help. Thanks in advance!

4 answers

2
points
This was chosen as the best answer

try

HTML, body {
    margin: 0;
    padding: 0;
}

Always include CSS reset to your css code. http://meyerweb.com/eric/tools/css/reset/

Monaye Win csspro.d3mstudio.com

Answered about 8 years ago by winmonaye
  • +1 for being right about the margin and padding, but always including CSS reset is dubious advice. Abinadi Ayerdis about 8 years ago
0
points

Better to find the problem as opposed to just trying to write a hack to correct it. I will be happy to look at it if you post your code. I love http://jsfiddle.net/ for that. If you post a link, I will check it out. :)

Answered about 8 years ago by Steve Fuller
JC 0
0
points

Thank you for trying to help Steve, but this site is not online yet. Is it ok if I send you the html and css code?

Answered about 8 years ago by JC
  • Don't post responses as answers, JC. That is what comments are for. Abinadi Ayerdis about 8 years ago
JC 0
0
points

Thank you very much winmonaye. It solved the problem. I always do that to the wrapper but I didnt know about the body. Once again thank you very much!

Answered about 8 years ago by JC