html - Please help me with this navigation bar -
this code vertical navigation bar have created, there 1 more thing need add here , flyout menu on mouse over. have tried many things did not work. here's css code
.navbar{ list-style-type: none; margin: 0; padding: 10px; width: 280px; /* width of menu */ } .navbar li{ border-bottom: 1px solid white; /* white border beneath each menu item */ } .navbar li a{ background: #333 url(media/sexypanelright.gif) no-repeat right top; /*color of menu default*/ font: bold 13px "lucida grande", "trebuchet ms", verdana; display: block; color: white; width: auto; padding: 5px 0; /* vertical (top/bottom) padding each menu link */ text-indent: 8px; text-decoration: none; border-bottom: 1px solid black; /*bottom border of menu link. should equal or darker link's bgcolor*/ } .navbar li a:visited, .navbar li a:active{ color: white; } .navbar li a:hover{ background-color: black; /*color of menu onmouseover*/ color: white; border-bottom: 1px solid black; /*bottom border of menu link during hover. should equal or darker link's hover's bgcolor*/ }
and html part this
<ul class="navbar"> <li><a href="#">» computers</a> </li> <li><a href="#" >» networking solutions</a></li> <li><a href="#/">» security solutions</a></li> <li><a href="#">» office automations</a></li> <li><a href="#">» gadgets</a></li> <li><a href="#">» projectors , display screens</a></li> <li><a href="#">» peripherals , components</a></li> <li><a href="#">» softwares</a></li> <li class="lastitem"><a href="#">» customized solutions</a></li> </ul>
what want when user hovers mouse on of item in list flyout menu appears menu. thank in advance.
is you're looking for?
this key, when hover li, child class .flyout visible
.navbar li:hover .flyout { display: block; }
ps: added submenu first 2 voices in main menu keep code short
Comments
Post a Comment