Single Columns with CSS : One Column « Layout « HTML / CSS






Single Columns with CSS

   
<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitionalt//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
  <head>
    <title>Single Columns CSS</title>
    <style rel="stylesheet" type="text/css">
.page {
  width: 700px;
  font-size: 12px;
  background-color: #ffffff;
  border-style: solid;
}
.nav {
  font-weight: bold;
  background-color: #e3e3e3;
  padding: 5px;
}

.content {
  padding: 10px;
}
</style>
  </head> 
  <body>
    <div class="page">
    <div class="header"><h1>My Company Name</h1></div>
    <div class="nav"><a href="">Home</a> | <a href="">Products</a> | <a href="">Services</a> | 
    <a href="">About Us</a> | <a href="">Contact Us</a></div>
    <div class="content">

        <h2>Sample Web Page</h2>
           <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nunc eleifend, erat id 
           commodo placerat, nulla purus bibendum justo, in dictum orci mi vitae nulla. Nullam 
           semper viverra nulla. Sed lacinia feugiat eros. Maecenas ullamcorper ligula quis 
           odio. Donec pede massa, pharetra sit amet, accumsan a, iaculis egestas, lectus. Etiam 
           ullamcorper elementum wisi. Etiam et felis aliquet dui tempus sagittis. Donec dapibus 
           ipsum id leo. Integer est ante, imperdiet non, suscipit sit amet, varius a, sem. 
           Integer lobortis wisi id erat. Nullam aliquet augue ac elit. Nulla facilisi. Vivamus 
           ligula tortor, molestie at, accumsan quis, semper vitae, augue. Praesent pede neque, 
           sollicitudin non, facilisis sed, viverra a, pede. Cras nec urna. Curabitur ut metus. 
           Curabitur erat lacus, tempus vitae, elementum nec, pulvinar vel, leo. Sed a velit. Proin 
           erat. Donec sem. </p>


      </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.Single column with header and footer
10.Header, sub header, footer with one column
11.One column with header and footer
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