Header and sub header with two columns and footer : Two columns « Layout « HTML / CSS






Header and sub header with two columns and footer

   


<!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>Entry page 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;
}
#breadcrumb {
  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;
}


body#entry #content-wrapper {
  padding-left: 1em;
  padding-right: 50%;
}

body#entry #navigation {
  position: absolute;
  top: 4em;
  right: 20px;
  max-width: 45%;
}

body#entry #related {
  display: none;
}

body#entry #footer {
  padding: 5px 0 5px 1.5em;
}

#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;
  color: #030;
}
</style>
</head>

<body id="entry">
<div id="wrapper">
 <div id="header"><h1>Header</h1></div>
 
 <div id="breadcrumb">Sub header</div>
 
 <div id="content-wrapper">
  <div id="content-inner">
  <h2>Header 2</h2>
  <p>this is a test. this is a test. this is a test. </p>
  <p>this is a test. this is a test. this is a test. </p>
  <p>this is a test. this is a test. this is a test. </p>
  <p>this is a test. this is a test. this is a test. </p>
  </div>
 </div>
 
 <div id="navigation">
 <ul>
  <li><a href="">r</a></li>
  <li><a href="">h</a></li>
  <li><a href="">i</a></li>
  <li><a href="">o</a></li>
 </ul>
 </div>
 
 <div id="related"></div>
 
 <div id="footer">foote</div>
</div>
</body>
</html>

   
    
  








Related examples in the same category

1.2 column with left content floats left
2.Two columns with a footer
3.Head and footer with two columns in between
4.Header bar, two columns, menu on the right
5.2-column Layout with total width 922px, and float right
6.2-column with total width 922 px and left column 678 px, float right
7.2-column with total width 922px, left width 200px, float right
8.2-column layout with margin in between
9.2-column, with float left and right, left 678px width
10.2-column with relative positioned right column
11.Two column: content and right bar
12.Two column with negative margin
13.Floated Two Column Layout
14.Two columns with separator
15.Two columns with background
16.Two columns with width: 50%
17.Two columns with header banner
18.Two row layout: one floats left, one floats right
19.float left and right with other content
20.Two columns with header and footer
21.Two columns
22.Master header and two columns
23.Floated Two-Column Layout 2
24.Header and two-column layout
25.Two Column Layout in HTML with table
26.Two Columns Layout Using CSS
27.Two column layout with red theme
28.Two column layout template to illustrate all
29.Two column layout to illustrate all
30.Two column layout template 2
31.Two column layout template 3
32.Two column with text header
33.Two-column with sidebar layout
34.Two-column layout with header and footer
35.Two even columns