Menu bar with highlight : Menu « CSS Controls « HTML / CSS

Home
HTML / CSS
1.CSS
2.CSS Controls
3.Form
4.IE Firefox
5.Layout
6.Marquee Attributes
7.Meta Tags
8.Microsoft Attributes
9.Object
10.Reference
11.Style Basics
12.Tags
13.Templates
14.XML
HTML / CSS » CSS Controls » Menu 




Menu bar with highlight
    


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title> XHTML 1.0 Shell - Strict Specification </title>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1" />
<style type='text/css'>
ul {
  margin: 0;
  padding: 0;
  width: 100px;
  list-style: none;
  position: relative;
}

li {
  padding-right: 5px
}

ul li a {
  display: block;
  text-decoration: none;
}

ul li a:hover {
  background-color: #ddd;
}

span {
  visibility: hidden;
  position: absolute;
  width: 5px;
  height: 120px;
  right: 0;
  top: 0
}

span.a {
  background: red;
}

span.b {
  background: green;
}

span.c {
  background: blue;
}

span.d {
  background: yellow;
}

span.e {
  background: pink;
}

span.f {
  background: orange;
}

ul li a:hover span {
  visibility: visible
}
</style>
</head>
<body>
<ul>
  <li><a href='#'>A<span class="a"></span></a></li>
  <li><a href='#'>B<span class="b"></span></a></li>
  <li><a href='#'>C<span class="c"></span></a></li>
  <li><a href='#'>D<span class="d"></span></a></li>
  <li><a href='#'>E<span class="e"></span></a></li>
  <li><a href='#'>F<span class="f"></span></a></li>
</ul>
</body>
</html>

   
    
    
  














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 with highlight
6.fixed width floated menu
7.Mouse hover left bar
8.Left navigation bar
9.Use UL and LI to wrap link menu
10.Tab Menu
11.Left bar menu list
12.Top tab menu bar
13.Navigation menu on the top
14.Wide and tall menu
15.Shading menu bar
16.Top menu bar with arrow icon
17.3D top bar background
18.Left menu bar aligned to the bottom
19.Indented vertical menu
20.Single column layout with top menu bar
21.Two-level left menu bar
22.Right section bar with shading menu
23.Right menu bar with image background
24.Right menu bar with section
25.Top menu bar
26.Using top arrow to indicate top menu selection
27.Wide and tall top menu bar
28.List menu bar with background image
29.Two level menu bar
30.Top menu with arrow indication
31.Two column, two leve top menu bar
32.List menu with image
33.Menu List item
34.List menu bar
35.Top menu list bar with bold bottom
36.Side menu bar
37.Scrollable section in side menu bar
38.Selected menu item indication
39.Card layout with top menu bar
40.Side menu bar with lot of space in between
41.HTML skeleton code for creating a two-level horizontal drop menu
42.using jQuery to toggle a hidden menu
43.Vertical menu
44.Horizontal menu bar
45.Vertical menu bar
46.sliding door menu
47.horizontal list menu
48.Sub navigation menu
49.Pure css menu
50.Two column layout with menu on the left
51.Navigation menu horizontal
52.Pure CSS drop-down menu
53.Menu item with border
54.Vertical menu on the left
55.LI menu
56.Mouse hover effect for left menu
57.Post item layout with menu
58.Left menu bar with mouse hover effect
59.a:hover background: transparent url(img/menu_arrow.gif) bottom center no-repeat;
60.Menu item with border 2
61.Link menu
62.Left menu bar with thicker border
63.Change border and background with mouse hover for left menu bar
64.Nested 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
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.