Hi, I am trying to set up the basic layout of my page using float. Everything seems to work except the main body will not appear next to the left vertical menu and instead appears at the bottom of it. The html is:
<body>
<div id="wrapper"><div id="banner"></div><div id="nav"></div><div id="main"></div>
<div id="footer"></div></div>
</body>
</html>
And the Css is:
body{margin:0; padding:0;}
#wrapper{width:800px; height:750px; border:#0033CC; border-width:thin; border-style:groove;
}
#banner{float:left;width:800px; height:120px; border:#990033; margin-top:5px; margin-left:5px; border-width:thin; border-style:groove; background-image: url(../elsculpts.jpg);
}
#nav{clear:left; width:200px; height:450px; margin-top:5px; margin-left:5px; border-width:thin; border-style:groove; border:#00CC33; background:#FFFFFF url(../gradpole.jpg) no-repeat;
}
#main{float:left; width:450px; height:450px; margin-left:5px; margin-top:5px;border-width:thin; border-style:groove; border:#00CC33; background-color:#99CC00;
}
#footer{clear:both; width:800px; height:100px; margin-top:5px; margin-left:5px; border-width:thin; border-style:groove; border:#00CC33; background-color:#00FFCC; margin-top:5px;
}
any ideas how i can rectify this?
thanks for your time
onwards and upwards
cass27







)

Bookmarks