Two columns with header banner : Two columns « Layout « HTML / CSS






Two columns with header banner

   
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title></title>
<style rel="stylesheet" type="text/css">
#banner {
  margin-top: 10px;
  border-bottom: 1px solid #73AFB7;
  padding-left: 15px;
}
#banner p {
  margin: 0;
  height: 85px;
}
#mainNav {
  float: left;
  width: 175px;
  margin-top: 20px;
  padding-left: 10px;
}
#content {
  margin-left: 200px;
  padding-left: 10px;
  border-left: 1px solid #D6ECAE;
}
#footer {
  clear: both;
  padding-top: 10px;
  border-top: 1px solid #294E56;
}
p {
  margin-top: 5px;
  margin-bottom: 0;
  margin-top: 0;
  margin-bottom: 5px;
}

.byline {
  color: #73afb7;
  margin-bottom: 10px;
}

#mainNav ul {
  margin-left: 0;
  padding-left: 0;
}

#mainNav li {
  margin-bottom: 10px;
}

#content ul {
  font-size: 1.2em;
}

#content li {
  margin-bottom: 5px;
}
</style>
</head>

<body>
<div id="banner">
  <p><img src="http://www.java2s.com/style/logo.png" alt="" width="553" height="70" /></p>
</div>
<div id="mainNav">
  <ul>
    <li>this is a test. </li>
    <li>this is a test. </li>
    <li>this is a test. </li>
    <li>this is a test. </li>
    <li>this is a test. </li>
  </ul>
</div>
<div id="content">
  <h1>header</h1>
  <p class="byline">By </p>
  <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh commodo consequat. Duis autem vel eum iriure:</p>
  <h2>header 2</h2>
  <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh commodo consequat. Duis autem vel eum iriure:</p>
  <ul>
  <li>E</li>
  <li>L</li>
  <li>E</li>
  </ul>
  <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh commodo consequat. Duis autem vel eum iriure.</p>
  <h2>Take Off that Smoking Jacket and Put on Those  Overalls </h2>
  <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh commodo consequat. Duis autem vel eum iriure.</p>
  <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh commodo consequat. Duis autem vel eum iriure.</p>
  <h2>From Herbal Tea to Compost Tea </h2>
  <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh commodo consequat.</p>
  <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh commodo consequat. Duis autem vel eum iriure:</p>
  <p>&nbsp;</p>
</div>
<div id="footer">
  <p>Copyright 2006</p>
</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 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