Sidebar with right border : Siderbar « CSS Controls « HTML / CSS






Sidebar with right border

  
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>*KHAKI*</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style rel="stylesheet" type="text/css">

#sidebar {
  float: left;
  width: 180px;
  margin: 0 10px 0 0;
  padding: 10px;
  border-right: 1px solid #eee;
  color: #666;
}

#sidebar a {
  color: #333;
  background: inherit;
}

#sidebar a:hover {
  color: #B29B35;
  background: inherit;
}

#sidebar {
  float: left;
  width: 180px;
  margin: 0 10px 0 0;
  padding: 10px;
  border-right: 1px solid #eee;
  color: #666;
}

#sidebar a {
  color: #333;
  background: inherit;
}

#sidebar a:hover {
  color: #B29B35;
  background: inherit;
}


</style>

</head>
<body>

  <div id="sidebar">
    <h2>Resources</h2>
    <div class="navlist">
      <ul>
        <li><a href="">A</a></li>
        <li><a href="">TODC</a></li>
        <li><a href="">OWD</a></li>
        <li><a href="">E</a></li>
        <li><a href="">F</a></li>
        <li><a href="">B</a></li>
        <li><a href="">C</a></li>
      </ul>
    </div>
    <form action="" method="post">
      <fieldset>
      <legend>Search</legend>
      <div> <span>
        <label for="txtsearch"> Find: <img src="img/search.gif" alt="search" /></label>
        </span> <span>
        <input type="text" value="demo only" name="txtsearch" title="Text input: search" id="txtsearch" size="20" />
        </span> </div>
      </fieldset>
    </form>
    <h2>Sub Menu</h2>
    <div class="navlist">
      <ul>
        <li><a href="">Link One</a></li>
        <li><a href="">Link Two</a></li>
        <li><a href="">Link Three</a></li>
        <li><a href="">Link Four</a></li>
      </ul>
    </div>
    <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</p>
  </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.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