Nested left menu bar : Menu « CSS Controls « HTML / CSS

Nested left menu bar


<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style rel="stylesheet" type="text/css">

#leftside {
  clear: left;
  float: left;
  margin: 0 0 5px;
  padding: 0;
  width: 140px;

#rightside {
  float: right;
  line-height: 1.4em;
  margin: 0 0 5px;
  padding: 0;
  width: 140px;

#leftside p,#leftside ul,#rightside p,#rightside ul {
  margin: 0 0 16px;
  padding: 0;

#leftside p,#rightside p {
  font-size: 0.9em;
  line-height: 1.4em;

#leftside li,#rightside li {
  line-height: 1.2em;
  list-style: none;
  margin: 0 0 6px;
  padding: 0;

#leftside ul ul,#rightside ul ul {
  margin: 6px 0 0 10px;
  padding: 0;

#leftside ul ul li,#rightside ul ul li {
  margin: 0 0 4px;

#leftside ul ul li a,#rightside ul ul li a {
  font-weight: 400;

#leftside h2,#leftside h3,#rightside h2,#rightside h3 {
  color: #505050;
  font-size: 1.2em;
  margin: 0 0 8px;
  padding: 0;

#leftside ul.avmenu,#rightside ul.avmenu {
  display: block;
  list-style: none;
  margin: 0 0 18px 0;
  padding: 0;
  width: 140px;

#leftside ul.avmenu li,#rightside ul.avmenu li {
  display: inline;
  line-height: 1.4em;
  padding: 0;
  width: 140px;

#leftside ul.avmenu li a,#rightside ul.avmenu li a {
  background-color: #f4f4f4;
  border-left: 4px solid #ccc;
  color: #505050;
  float: left;
  font-weight: 700;
  margin-bottom: 5px;
  padding: 5px 1px 5px 5px;
  text-decoration: none;
  width: 130px;

#leftside ul.avmenu li a:hover,#leftside ul.avmenu li a.current,#rightside ul.avmenu li a:hover,#rightside ul.avmenu li a.current
  background-color: #eaeaea;
  border-left: 4px solid #286ea0;
  color: #505050;

#leftside ul.avmenu ul,#rightside ul.avmenu ul {
  font-size: 0.9em;
  margin: 0 0 0 15px;
  padding: 0 0 5px;
  width: 125px;

#leftside ul.avmenu ul a,#rightside ul.avmenu ul a {
  font-weight: 400;
  padding: 3px 1px 3px 5px;
  width: 115px;

#leftside ul.avmenu ul ul,#rightside ul.avmenu ul ul {
  width: 113px;

#leftside ul.avmenu ul ul a,#rightside ul.avmenu ul ul a {
  width: 100px;



  <div id="leftside">
    <h2 class="hide">Menu:</h2>
    <ul class="avmenu">
      <li><a class="current" href="index.html">Main layout</a></li>
      <li><a href="index2.html">2-column layout A</a></li>
      <li><a href="index3.html">2-column layout B</a></li>
      <li><a href="#">Subpage demo</a>
          <li><a href="#">Subpage 1</a></li>
          <li><a href="#">Subpage 2</a></li>
      <li><a href="print.html">Print stylesheet</a></li>

    <div class="announce">
      <p><strong>Apr 24, 2011:</strong><br />Refreshed: v3.0!</p>
      <p><strong>Jan 11, 2011:</strong><br />Improved: v2.5!</p>
      <p><strong>June 25, 2011:</strong><br />Major upgrade: v2.0.</p>
      <p><strong>June 25, 2011:</strong><br />First release: v1.0.</p>
      <p class="textright"><a href="#">Sample link &raquo;</a></p>



Related examples in the same category

1.Use show or hide UL with link
2.Horizontal menu
3.CSS only menu with mouse over
4.Left bar menu
5.Menu bar with highlight
6.Menu with highlight
7.fixed width floated menu
8.Mouse hover left bar
9.Left navigation bar
10.Use UL and LI to wrap link menu
11.Tab Menu
12.Left bar menu list
13.Top tab menu bar
14.Navigation menu on the top
15.Wide and tall menu
16.Shading menu bar
17.Top menu bar with arrow icon
18.3D top bar background
19.Left menu bar aligned to the bottom
20.Indented vertical menu
21.Single column layout with top menu bar
22.Two-level left menu bar
23.Right section bar with shading menu
24.Right menu bar with image background
25.Right menu bar with section
26.Top menu bar
27.Using top arrow to indicate top menu selection
28.Wide and tall top menu bar
29.List menu bar with background image
30.Two level menu bar
31.Top menu with arrow indication
32.Two column, two leve top menu bar
33.List menu with image
34.Menu List item
35.List menu bar
36.Top menu list bar with bold bottom
37.Side menu bar
38.Scrollable section in side menu bar
39.Selected menu item indication
40.Card layout with top menu bar
41.Side menu bar with lot of space in between
42.HTML skeleton code for creating a two-level horizontal drop menu
43.using jQuery to toggle a hidden menu
44.Vertical menu
45.Horizontal menu bar
46.Vertical menu bar
47.sliding door menu
48.horizontal list menu
49.Sub navigation menu
50.Pure css menu
51.Two column layout with menu on the left
52.Navigation menu horizontal
53.Pure CSS drop-down menu
54.Menu item with border
55.Vertical menu on the left
56.LI menu
57.Mouse hover effect for left menu
58.Post item layout with menu
59.Left menu bar with mouse hover effect
60.a:hover background: transparent url(img/menu_arrow.gif) bottom center no-repeat;
61.Menu item with border 2
62.Link menu
63.Left menu bar with thicker border
64.Change border and background with mouse hover for left menu bar
65.Vertical menu bar 2
66.Fixed left menu bar
67.Dark background for menu bar
68.Link menu item with side bar
69.Tag like top menu bar
70.Two line top menu bar
71.Menu item separated with border
72.Using arrow image to indicate current menu selection
73.Two level top menu bar
74.Tab menu bar with mouse hover effect
75.Menu bar with background image
76.Two level side menu bar
77.Left bar with news item
78.Continue read link