Using H4 as the sidebar section title : Siderbar « CSS Controls « HTML / CSS

HTML / CSS » CSS Controls » Siderbar 
Using H4 as the sidebar section title
  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
  <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
<style type='text/css'>

/***** Side Content *****/

#sidecontent
{
  margin:0;
  padding:15px 0 0 0;
  float:right;
  width:164px;
}

#sidecontent ul
{
  color:#333;
  list-style:none;
  padding:0;
  margin:0;
  background:inherit;
}

#sidecontent li
{
  padding: 0.1ex 0;
}

#sidecontent li a
{
  color:#000;
  text-decoration:none;
  font-size:1em;
  display:block;
  padding:8px 20px;
  background:inherit;
}

#sidecontent li a:hover
{
  background:#94CC29;
  color:white;
}

#sidecontent h4
{
  font-size:1em;
  font-weight:bold;
  margin:0;
  padding:10px 0 2px 15px;
}

</style>
<title></title>
</head>
<body>

<div id="sidecontent">
  <h4>H4 Text</h4>
  <ul>
      <li><a href="#">List Item</a></li>
      <li><a href="#">List Item</a></li>
  </ul>
  <h4>H4 Text</h4>
  <ul>
      <li><a href="#">List Item</a></li>
      <li><a href="#">List Item</a></li>
      <li><a href="#">List Item</a></li>
      <li><a href="#">List Item</a></li>
  </ul> 
</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.Div based sidebar
18.Sidebar column
19.Sidebar with read more link 3
20.Layout for sidebar and article
21.Navigation sidebar
22.Two columns with sidebar
23.position: absolute; Sidebar
24.Sidebar Link list
25.Sidebar with right border
26.Links inside sidebar
27.Sidebar title
28.Sidebar with read more
29.Sidebar with around corner
30.Login form inside sidebar
31.Shading sidebar title
32.Using border to add boundary to the sidebar item
33.Sidebar with two columns
34.With link sidebar on both sides
35.Site news inside sidebar
36.Sidebar floating right
37.Sidebar Links with mouse hover effect
38.Sidebar li a:hover background:#94CC29;
39.Link side bar
40.Two column links and text
41.Two column right link bar
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.