One column with content on the top and menu at the bottom, and margin in between : One Column « Layout « HTML / CSS

Home
HTML / CSS
1.CSS
2.CSS Controls
3.Form
4.IE Firefox
5.Layout
6.Marquee Attributes
7.Meta Tags
8.Microsoft Attributes
9.Object
10.Reference
11.Style Basics
12.Tags
13.Templates
14.XML
HTML / CSS » Layout » One Column 
One column with content on the top and menu at the bottom, and margin in between
   

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <title></title>
  <style type="text/css">
#content {
  padding: 20px 10px 10px 80px;
  margin-top: 5px;
  margin-bottom: 5px;
  margin-right: auto;
  margin-left: auto;
  background-color: #fff;
  border: 1px solid #000;
  width: 70%;
}
#navBar {
  padding: 0px 10px 0px 10px;
  margin-top: 0px;
  margin-bottom: 5px;
  margin-right: auto;
  margin-left: auto;
  background-color: #fff;
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
  border-left: 1px solid #000;
  border-right: 1px solid #000;
  width: 70%;
  text-align: right;
}
  </style>
</head>


<body>
  <div id="content">
  this is a test. this is a test. this is a test. this is a test. this is a test. 
  this is a test. this is a test. this is a test. this is a test. this is a test. 
  this is a test. this is a test. this is a test. this is a test. this is a test. 
  this is a test. this is a test. this is a test. this is a test. this is a test. 
  this is a test. this is a test. this is a test. this is a test. this is a test. 
  </div>
  <div id="navBar">
  &lt;back |home |next&gt;
  </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 header and footer only
6.One column: header, content
7.1 column, header, content, footer
8.Single column with header and 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
java2s.com  |  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.