Div based sidebar : Siderbar « CSS Controls « HTML / CSS






Div based sidebar

  
?<!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" dir="ltr" lang="en-US"
  xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title></title>
<style rel="stylesheet" type="text/css">


#sidebar {
  width: 242px;
  float: left;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  color: #5F5F5F
}

#sidebar div {
  padding: 28px 0 0 0
}

#sidebar ul {
  padding: 15px 0 0 12px;
}

#sidebar li {
  list-style-type: none;
  line-height: 17px;
}

#sidebar li a {
  font-size: 12px;
  color: #027DD4;
  text-decoration: underline
}

#sidebar li a:visited {
  text-decoration: underline
}

#sidebar li a:hover {
  text-decoration: none
}

#sidebar p {
  padding: 20px 0 0 10px;
  width: 212px;
}

.name {
  padding: 10px 0 0 10px;
  display: block
}

#sidebar .more {
  margin: 10px 0 0 10px
}


</style>
</head>
<body>
          <div id="sidebar">
            <div>
              <img src="images/title4.gif" alt="" width="242" height="26" /><br />
              <ul>
                <li><a href="#">Illum secundum</a></li>
                <li><a href="#">Tamen causa ut diam</a></li>
                <li><a href="#">Appellatio vel hos autem</a></li>
                <li><a href="#">Consequat</a></li>
                <li><a href="#">Nibh valde tincidunt</a></li>
                <li><a href="#">Illum secundum</a></li>
                <li><a href="#">Appellatio vel</a></li>
                <li><a href="#">Illum secundum</a></li>
                <li><a href="#">Nibh valde</a></li>
                <li><a href="#">Consequat</a></li>
                <li><a href="#">Nibh valde tincidunt</a></li>
              </ul>
            </div>
            <div>
              <img src="images/title5.gif" alt="" width="242" height="24" /><br />
              <p>
                Illum secundum exerci erat plaga illum, enim, venio. Tamen causa ut diam torqueo sagaciterinhibeo si quae exer... lobortis. Appellatio vel hos autem, ludus luptatum mauris ratis jugis interdico. Gilvus consequat abico demoveo lenis validus typicus ut commodo. 
              </p>
              <strong class="name">Mr. John Johnson</strong>
                <a href="#" class="more">All Testimonials</a>
            </div>
          </div>
</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.side bar 2
8.Link bar with dotted line
9.Latest news sidebar
10.Sidebar with link and text
11.Sidebar with read more link
12.Text paragraph with sidebar
13.Sidebar with border
14.Div Sidebar padding: 0 38px 45px 29px;
15.Div Sidebar width: 328px;
16.Div Sidebar float: left;
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