1

here is a JS Fiddle
I have already tried a couple of different things such as body { margin:0; padding:0;} it doesn't work

body {
margin: 0;
width: 100%;
height: 3000px;
}
Himanshu
  • 4,327
  • 16
  • 31
  • 39
wolfsouls
  • 11
  • 7

4 Answers4

0

Look at the header margin:

#header {
    width: 100%;
    /*margin: 20px 0;*/
    z-index: 1;
}

The space comes from this. Delete it.

Will Reese
  • 2,801
  • 2
  • 15
  • 27
0

this is called Margin Collapsing.. try replacing this..

#header {
    width: 100%;
    z-index: 1;
}

FIDDLE and refer this for Detailed Answer

Community
  • 1
  • 1
Sarath
  • 2,318
  • 1
  • 12
  • 24
0

Add reset.css file to your webpage. ask google for reset.css

Ramu
  • 15
  • 1
  • 7
0
 margin: 0px 20px 0 20px; or margin-top:-10px;

try this

Uraj
  • 47
  • 2
  • 16