Header and sub header with three columns
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Default document layout</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style rel="stylesheet" type="text/css">
#wrapper {
text-align: left;
border: 1px solid #033;
position: relative;
font-size: 1.4em;
}
#header {
background-color: #033;
color: #fff;
padding: 10px;
}
#subHeader {
background: #009F9F;
color: #fff;
padding: 5px 10px;
}
body#cols3 #content-wrapper {
padding-left: 9em;
padding-right: 11em;
}
body#cols3 #navigation {
position: absolute;
top: 6.8em;
left: 0;
}
body#cols3 #related {
position: absolute;
top: 6.8em;
right: 10px;
}
#navigation ul,#related h2 {
margin-top: 0;
padding-top: 0;
}
#related ul {
margin: 0;
padding-left: 15px;
}
#footer {
padding: 5px 0 5px 160px;
clear: both;
background: #D9FFF8;
font-size: 0.8em;
color: #030;
}
</style>
</head>
<body id="cols3">
<div id="wrapper">
<div id="header"><h1>Header</h1></div>
<div id="subHeader">Europe</div>
<div id="content-wrapper">
<div id="content-inner">
<p>this is a test<BR/>. <BR/>this <BR/>is <BR/>a <BR/>test<BR/>. <BR/>this <BR/>is <BR/>a <BR/>test. </p>
</div>
</div>
<div id="navigation">
<ul>
<li><a href="">Nav link 1</a></li>
<li><a href="">Nav link 2</a></li>
<li><a href="">Nav link 3</a></li>
<li><a href="">Nav link 4</a></li>
<li><a href="">Nav link 5</a></li>
</ul>
</div>
<div id="related">
<h2>Related Links</h2>
<ul>
<li><a href="">Related link</a></li>
<li><a href="">Another link</a></li>
<li><a href="">And another</a></li>
</ul>
</div>
<div id="footer">Footer</div>
</div>
</body>
</html>
Related examples in the same category