View Single Post
  #1 (permalink)  
Old May 1st, 2008, 13:00
saltedm8's Avatar
saltedm8 saltedm8 is online now
Lead Administrator

SuperMember
Join Date: Nov 2005
Location: Always About
Age: 27
Posts: 1,281
Blog Entries: 1
Thanks: 1
Thanked 6 Times in 6 Posts
[SOLVED] simple layout problem

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
Attached Images
File Type: jpg 2.jpg (13.9 KB, 9 views)
File Type: jpg 1.jpg (13.9 KB, 8 views)
__________________
My Recipe forum...don't click here
Reply With Quote