First, heres the basic html code I’m using.
[code=php]<body>
<div id=”main”>
<div id=”banner” />
<a href=”index.php”><img id=”header” src=”images/bicyclebob.png”/></a>
<div id=”maincol”>
….content
</div>
</div> <!–end of main–>
and the css:
[code=php]#banner{
background:url(“../images/banner.png”) repeat-x top;
}
#main{
width: 800px;
}
#maincol{
background-image: url(“../images/backy.png”);
margin-top: 150px;
margin-left: 10px;
z-index: 1;
}
#footer{
margin-top: 10px;
text-align: center;
}
#header{ float: right; }
The problem is thus, for some reason my bicyclebob image and even my banner line up with the #maincol 150px down the page. My banner that should be repeated across the entire top of the page even cuts off with the #maincol at 800px. My xhtml validates so I have no idea whats causing this.
Any suggestions or ideas? Thanks!