Single column with header and footer : One Column « Layout « HTML / CSS






Single column with header and footer

   
<!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>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
#outer{
  min-height:100%;
  width:612px;
  position:relative;
}
#header {
  background:#aaa;
  height:40px;
  margin-left:6px;
  margin-right:6px;
}
#footer {
  position:absolute;
  bottom:0;
  left:0;
  background:#ccc;
  height:40px;
  width:98%;
}
#clearfooter{
    clear:both;
    height:40px;
}
</style>
</head>
<body>
<div id="outer">
  <div id="header">Header</div>
    <p>Content</p>
  <div id="clearfooter"></div>
  <div id="footer">Footer</div>
</div>
</body>
</html>

   
    
  








Related examples in the same category

1.One column with two DIV section
2.Single column
3.Header with one column under
4.One column with content on the top and menu at the bottom
5.One column with content on the top and menu at the bottom, and margin in between
6.One column with header and footer only
7.One column: header, content
8.1 column, header, content, footer
9.Header, sub header, footer with one column
10.One column with header and footer
11.Single Columns with CSS
12.Liquid Design in CSS
13.Article layout
14.Fixed One-Column Layout (Basic)
15.Fixed One-Column #2 Layout (Basic)
16.Fixed height, three parts, single column