html - CSS navigation sub menu -


my css code not allowing sub nav stay open allowing user able select option. missing? believe last css style. shows when mouse over. start move mouse down select option disappears.

please help:

html

<div id="navigation_bar">     <ul>                                 <li id=""><a href="">home</font></a></li>                                 <li><a href="beauty_treatments.html">beauty treatments</a>             <ul>                 <li><a href="">manicure & pedicure</a></li>                 <li><a href="">gel manicure & pedicure</a></li>                 <li><a href="">waxing</a></li>                 <li><a href="">facials</a></li>                 <li><a href="">make-up</a></li>                 <li><a href="">eye treatments</a></li>             </ul>  </div> 

css

#navigation_bar ul {     list-style-type: none;     margin: 0;     padding: 0; } #navigation_bar ul li {     float: left; } #navigation_bar ul li {     display: block;     padding: 0 20px 0 20px;     margin: 0;     font-family: arial, helvetica, sans-serif;     font-size: 14px;     color: #222;     font-weight: bold;     text-decoration: none;     line-height: 36px;     border: none; } #navigation_bar ul li a:hover {     border: none;     color: #ffffff;     background-image: url(images/mouse_over_background.gif);     z-index: 1;                                           } #navigation_bar ul li ul li {     float: none;     z-index: 2; } #navigation_bar ul li ul {     position: absolute;     display: none; } #navigation_bar ul li:hover ul {     display: block; } 

simple bug

your error:

css:

#navigation_bar ul li a:hover{         border:none;         color:#ffffff;         background-image:url(images/mouse_over_background.gif);         z-index:1;                                           } 

what should be:

#navigation_bar ul li a:hover{         border:none;         color:black;         background-image:url(images/mouse_over_background.gif);         z-index:1;                                           } 

Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -