I am building a template, and i am stumped with this
please look at attached
image 2
that is what i have here
- Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
<!--
#header {
margin: 0 auto;
width:960px;
height:200px;
overflow:auto;
}
#container {
margin: 0 auto;
width:960px;
overflow:auto;
}
#left {
float: left;
width:220px;
height:400px;
clear:left;
margin: 15px 8px 3px 0;
}
#centre {
float: left;
width:504px;
height:500px;
margin: 0 0 3px 0;
}
#right {
float: right;
width:220px;
height:400px;
margin: 15px 0 3px 8px;
}
#footer {
margin: 0 auto;
width:960px;
height:90px;
margin-top: 10px;
margin-bottom:5px;
}
#menu { float: left;
width: 960px;
height:50px;
-->
</style>
</head>
<body>
<div id="header">
<div id="menu"></div>
</div>
<div id="container">
<div id="left"></div>
<div id="centre"></div>
<div id="right"></div>
</div>
<div id="footer"></div>
</body>
</html>
what i want is
image 1
but i cant seem to get the centre float to overlap the header, if i put in lets say -30px it only underlaps ( hope that makes sence )
anyone know what the trick is ? thank you