我根据您的问题举了一个我认为您正在寻找的例子,很难说。
这是演示:http: //jsfiddle.net/tATWE/1/
HTML:
<div id="outer-container">
<div id="header">
<h1>{ Header }</h1>
</div>
<div style="clear: both">
</div>
<div id="top-Nav">
<h1>{ Top Navigation }</h1>
</div>
<div style="clear: both">
</div>
<div id="left-nav">
<h1>{ Left Side Navigation }</h1>
<ul>
<li>Nav Links</li>
<li>Nav Links</li>
</ul>
</div>
<div id="content-container">
<h1>{ Content }</h1>
</div>
<div style="clear: both">
</div>
<div id="footer">
<h1>{ Footer }</h1>
</div>
</div>
CSS:
body {
margin: 0px;
padding: 0px;
}
/* h1 tag style */
h1 {
margin: 0px;
padding: 0px;
font-family: arial;
font-size: 140%;
color: #fff;
}
/* CSS Style Rule for Div having id="outer-container" */
/* outer-container will hold the whole assembly of
nested div overlays. */
/* It will also center align the design */
#outer-container {
width: 990px;
margin: 0 auto;
}
/* footer CSS Style Rule */
#header {
width: 990px;
height: 90px;
background-color: blue;
}
/* footer CSS Style Rule */
#footer {
width: 990px;
background-color: red;
}
/* content-container CSS Style Rule */
/* It will hold the main content of the page. */
/* it is the right side column */
/* in this 2 columns div layout */
#content-container {
width: 730px;
height: 400px;
background-color: green;
margin: 2px 0px 2px 0px;
float: left;
}
/* left side navigation that is the left side column of */
/* 2 columns div layout */
#left-nav {
width: 258px;
height: 400px;
background-color: navy;
margin: 2px 2px 2px 0px;
float: left;
}
#left-nav li {
color: red;
}
/* Top navigation CSS Style Rule */
#top-Nav {
width: 990px;
background-color: black;
margin: 2px 0px 0px 0px;
}