html - Bug in CSS3 Dropdown menu -


i have dropdown menu working on , have come across bug in process can't find. wordpress site , theme made; while trying change menu layout, have come across little bug.

the site @ http://redballoontoystore.com/e. know want code don't know if code copy , paste have bug. trying use firebug find issue. when hover on "toys" menu drops down screwed up.

the basic structure

<div id="categories">  <ul>   <li>    <ul class="sub-menu">     <li>      <ul class="sub-menu">       <li></li>      </ul>     </li>    </ul>   </li>  </ul> </div> 

and of css is

#main_navigation {   z-index: 10;   position: relative;   margin-bottom: 30px; } #main_navigation > .s_wrap > .s_col_12 {   position: relative;   border-top: 1px solid #e6e6e6; } #categories {   clear: both;   <?php if ($language == 'ltr'): ?>   float: left;   <?php else: ?>   float: right;   <?php endif; ?>   padding: 13px 0 0 0; } #categories > ul {   margin-bottom: 14px; } #categories > ul > li, #categories > ul > li > {   position: relative;   height: 32px;   line-height: 32px; } #categories > ul > li > {   padding: 0 10px; } #categories > ul > li:hover > a, #categories > ul > li > a:hover {   color: #fff; } #categories > ul > li > .sub-menu, #cart_menu .s_submenu {   width: 200px;   padding: 10px 15px;   background-color: #fff;   box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);   -o-box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);   -moz-box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);   -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); }  ul.sub-menu > li > ul {                                         /*added david*/     width: 100%;     padding: 0px 15px;     clear: left; }  #categories .sub-menu > li {   <?php if ($language == 'ltr'): ?>   float: left;   clear: left;   <?php else: ?>   float: right;   clear: right;   <?php endif; ?>   width: 185px;   line-height: 20px; } #categories .sub-menu > li:before {   top: 13px; } #categories .sub-menu > li > {   display: block;   padding: 5px 0; } #categories .sub-menu > li:hover {   position: relative; } /*****#categories .sub-menu li:hover > ul {****/ /*****  display: block;                    ****/                        /*commented out david*/ /****}                                     ****/ #categories .sub-menu > ul {   position: absolute;   /*top: -10px;*/   left: 96%;   /*display: none;*/ } #categories .s_submenu li.s_selected > {   font-weight: bold; } 

i found issue.

#categories .sub-menu ul {   position: relative;   /*top: -10px;*/   /*left: 96%;*/   /*display: none;*/   clear:left; } 

i don't think clear:left needed keep there.


Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -