side bar 2 : Siderbar « CSS Controls « HTML / CSS






side bar 2

    



<!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>Sidebar</title>
<style rel="stylesheet" type="text/css">
.sidebar {
  width: 200px;
  float: right;
  margin: 10px;
  border: solid 1px black;
  border-top-width: 5px;
  padding: 10px;
  background-color: #fbef99;
}


</style>
</head>

<body>
<h1>header</h1>
<div class="sidebar">
<h3>this is a test. this is a test.  </h3>
<ul>
  <li>L</li>
  <li>L</li>
  <li>L</li>
  <li>L</li>
  <li>L</li>
  <li>L</li>
  <li>L</li>
</ul>
</div>
<h2>Header 2</h2>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim </p>
<h2>Yves Saint Laurent Garden Shears</h2>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh suscipit lobortis nisl ut aliquip ex ea 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 suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure. </p>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure. </p>
<p class="copyright">Copyright 2006</p>
</body>
</html>

   
    
    
  








Related examples in the same category

1.siderbar float right
2.Content floats left, side bar floats right
3.Sidebar with absolute position
4.Inner left and right bar
5.Sidebar with float left
6.Side bar contains list
7.Link bar with dotted line
8.Latest news sidebar
9.Sidebar with link and text
10.Sidebar with read more link
11.Text paragraph with sidebar
12.Sidebar with border
13.Div Sidebar padding: 0 38px 45px 29px;
14.Div Sidebar width: 328px;
15.Div Sidebar float: left;
16.Div based sidebar
17.Sidebar column
18.Sidebar with read more link 3
19.Layout for sidebar and article
20.Navigation sidebar
21.Two columns with sidebar
22.position: absolute; Sidebar
23.Sidebar Link list
24.Sidebar with right border
25.Links inside sidebar
26.Sidebar title
27.Sidebar with read more
28.Sidebar with around corner
29.Login form inside sidebar
30.Shading sidebar title
31.Using border to add boundary to the sidebar item
32.Sidebar with two columns
33.With link sidebar on both sides
34.Site news inside sidebar
35.Sidebar floating right
36.Sidebar Links with mouse hover effect
37.Using H4 as the sidebar section title
38.Sidebar li a:hover background:#94CC29;
39.Link side bar
40.Two column links and text
41.Two column right link bar