margin at the top that i dont want

Posted by Luke on Stack Overflow See other posts from Stack Overflow or by Luke
Published on 2010-05-12T13:16:01Z Indexed on 2010/05/12 13:24 UTC
Read the original article Hit count: 330

Filed under:
|

For some reason, I am getting a gap at the top of the page. The html:

<body>
   <div id="main">
    <div id="topcontainer">
    <div id="topmenu">
    asdasdsa
    </div>
</div>

The css:

body
{
background-color:#FFF;
font-family:Arial, Helvetica, sans-serif;
}

#main
{
width: 1024px;
margin: 0 auto 0 auto;
}

#topcontainer
{
height: 80px;
}

#topmenu
{
height:40px;
background-image:url('../siteimages/topmenu.jpg');
}

#secondmenu
{
height:40px;
}

There is just a small amount of white space at the top, any ideas?

© Stack Overflow or respective owner

Related posts about html

Related posts about css