Header bar, two columns, menu on the right : Two columns « Layout « HTML / CSS






Header bar, two columns, menu on the right

   


<?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">
#top {
  margin: 5px 15px 0px 15px;
  padding: 10px 10px 10px 0px;
  color: #ccc;
  border-bottom: 1px solid #ccc;
  height: 25px;
}
#content {
  margin: 0px 122px 0px 5px;
  padding: 20px 10px 20px 10px;
}
#sidebar {
  position: absolute;
  top: 75px;
  right: 0px;
  margin: 0px 0px 5px 0px;
  padding: 0px 10px 10px 15px;
  width: 90px;
  border: 1px solid #ccc;
}

  </style>
</head>



<body>
  <div id="top">
  <h1>Lorem ipsum</h1>
  </div>
  <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="sidebar">
  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>
</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.2-column Layout with total width 922px, and float right
5.2-column with total width 922 px and left column 678 px, float right
6.2-column with total width 922px, left width 200px, float right
7.2-column layout with margin in between
8.2-column, with float left and right, left 678px width
9.2-column with relative positioned right column
10.Two column: content and right bar
11.Two column with negative margin
12.Floated Two Column Layout
13.Two columns with separator
14.Two columns with background
15.Two columns with width: 50%
16.Two columns with header banner
17.Two row layout: one floats left, one floats right
18.Header and sub header with two columns and footer
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