Hello, I have made an integration of this drop-down menu in to my website, but it keeps giving this bug which I cant figure out how to fix. This is the url of my website: http://www.worldbiology.net The css and html code of the menu are: css: /* Top Menu BEGIN*/ /* ================================================================ This copyright notice must be kept untouched in the stylesheet at all times. The original version of this stylesheet and the associated (x)html is available at http://www.cssplay.co.uk/menu/pro_drop3.html Copyright (c) 2005-2007 Stu Nicholls. All rights reserved. This stylesheet and the associated (x)html may be modified in any way to fit your requirements. =================================================================== */ .preload1 {background: url(images/m_blue/drop3/blank_over.gif);} .preload2 {background: url(images/m_blue/drop3/blank_overa.gif);} .menu2 {padding:0 0 0 0px; margin:0; list-style:none; height:32px; background:#DDDDDD; position:relative; z-index:500; font-family:arial, verdana, sans-serif;} .menu2 li.top {display:block; float:left;} .menu2 li a.top_link {display:block; float:left; height:32px; line-height:27px; color:#ccc; text-decoration:none; font-size:11px; font-weight:bold; padding:0 0 0 12px; cursor:pointer;background: url(images/m_blue/drop3/blank.gif);} .menu2 li a.top_link span {float:left; display:block; padding:0 24px 0 12px; height:32px;background:url(images/m_blue/drop3/blank.gif) right top;} .menu2 li a.top_link span.down {float:left; display:block; padding:0 24px 0 12px; height:32px; background:url(images/m_blue/drop3/blanka.gif) no-repeat right top;} .menu2 li a.top_link:hover {color:#fff; background: url(images/m_blue/drop3/blank_over.gif) no-repeat;} .menu2 li a.top_link:hover span {background:url(images/m_blue/drop3/blank_over.gif) no-repeat right top;} .menu2 li a.top_link:hover span.down {background:url(images/m_blue/drop3/blank_overa.gif) no-repeat right top;} .menu2 li:hover > a.top_link {color:#fff; background: url(images/m_blue/drop3/blank_over.gif) no-repeat;} .menu2 li:hover > a.top_link span {background:url(images/m_blue/drop3/blank_over.gif) no-repeat right top;} .menu2 li:hover > a.top_link span.down {background:url(images/m_blue/drop3/blank_overa.gif) no-repeat right top;} .menu2 table {border-collapse:collapse; width:0; height:0; position:absolute; top:0; left:0;} /* Default link styling */ /* Style the list OR link hover. Depends on which browser is used */ .menu2 a:hover {visibility:visible; position:relative; z-index:200;} .menu2 li:hover {position:relative; z-index:200;} /* keep the 'next' level invisible by placing it off screen. */ .menu2 ul, .menu2 :hover ul ul, .menu2 :hover ul :hover ul ul, .menu2 :hover ul :hover ul :hover ul ul, .menu2 :hover ul :hover ul :hover ul :hover ul ul {position:absolute; left:-9999px; top:-9999px; width:0; height:0; margin:0; padding:0; list-style:none;} .menu2 :hover ul.sub {left:0; top:31px; background: #fff; padding:3px; border:1px solid #3a93d2; white-space:nowrap; width:90px; height:auto; z-index:300;} .menu2 :hover ul.sub li {display:block; height:20px; position:relative; float:left; width:90px; font-weight:normal;} .menu2 :hover ul.sub li a {display:block; font-size:11px; height:20px; width:90px; line-height:20px; text-indent:5px; color:#000; text-decoration:none;} .menu2 :hover ul.sub li a.fly {background:#fff url(images/m_blue/drop3/arrow.gif) 80px 7px no-repeat;} .menu2 :hover ul.sub li a:hover {background:#3a93d2; color:#fff;} .menu2 :hover ul.sub li a.fly:hover {background:#3a93d2 url(images/m_blue/drop3/arrow_over.gif) 80px 7px no-repeat; color:#fff;} .menu2 :hover ul li:hover > a.fly {background:#3a93d2 url(images/m_blue/drop3/arrow_over.gif) 80px 7px no-repeat; color:#fff;} .menu2 :hover ul :hover ul, .menu2 :hover ul :hover ul :hover ul, .menu2 :hover ul :hover ul :hover ul :hover ul, .menu2 :hover ul :hover ul :hover ul :hover ul :hover ul {left:90px; top:-4px; background: #fff; padding:3px; border:1px solid #3a93d2; white-space:nowrap; width:90px; z-index:400; height:auto;} /* Top Menu END */ Code (markup): HTML: <tr> <td height="32"><img src="{FULL_SITE_PATH}{T_IMAGESET_PATH}/buttons_left1.gif" width="9" height="32" alt="" /></td> <td class="buttons1" align="right" valign="top"><table border="0" cellspacing="0" cellpadding="0"> <tr> <td width="12" align="center"><img src="{FULL_SITE_PATH}{T_IMAGESET_PATH}buttons_left2.gif" width="12" height="32" alt="" /></td> <td valign="top"> <span class="preload1"></span> <span class="preload2"></span> <ul class="menu2"> <li class="top"><a href="{FULL_SITE_PATH}{U_PORTAL}" id="home" class="top_link"><span>{L_HOME}</span></a></li> <li class="top"><a href="{FULL_SITE_PATH}{U_INDEX}" id="products" class="top_link"><span class="down">{L_INDEX}</span><!--[if gte IE 7]><!--></a><!--<![endif]--> <!--[if lte IE 6]><table><tr><td><![endif]--> <ul class="sub"> <li><a href="../menu/">Cameras</a></li> <li><a href="../boxes/">Lenses</a></li> <li><a href="../mozilla/">Flash Guns</a></li> <li><a href="../ie/">Tripods</a></li> <li><a href="../opacity/">Filters</a></li> </ul> <!--[if lte IE 6]></td></tr></table></a><![endif]--> </li> <li class="top"><a href="{FULL_SITE_PATH}{U_KB}" id="privacy" class="top_link"><span>{L_KB}</span></a></li> <li class="top"><a href="{FULL_SITE_PATH}{U_DOWNLOADS_NAV}" id="privacy" class="top_link"><span>{L_DOWNLOADS}</span></a></li> <li class="top"><a href="{FULL_SITE_PATH}{U_ALBUM}" id="privacy" class="top_link"><span>{L_ALBUM}</span></a></li> <li class="top"><a href="{FULL_SITE_PATH}{U_SEARCH}" id="shop" class="top_link"><span class="down">{L_SEARCH}</span><!--[if gte IE 7]><!--></a><!--<![endif]--> <!--[if lte IE 6]><table><tr><td><![endif]--> <ul class="sub" align="left"> <li><a href="../ie/">Online</a></li> <li><a href="../opacity/">Catalogue</a></li> <li><a href="../menu/">Mail Order</a></li> </ul> <!--[if lte IE 6]></td></tr></table></a><![endif]--> </li> <!-- BEGIN switch_user_logged_out --> <li class="top"><a href="{FULL_SITE_PATH}{U_REGISTER}" id="privacy" class="top_link"><span>{L_REGISTER}</span></a></li> <!-- END switch_user_logged_out --> <!-- BEGIN switch_user_logged_in --> <li class="top"><a href="{FULL_SITE_PATH}{U_PROFILE}" id="contacts" class="top_link"><span class="down">{L_PROFILE}</span><!--[if gte IE 7]><!--></a><!--<![endif]--> <!--[if lte IE 6]><table><tr><td><![endif]--> <ul class="sub"> <li><a href="../layouts/">Support</a></li> <li><a href="../boxes/">Sales</a></li> <li><a href="../mozilla/">Buying</a></li> <li><a href="../ie/">Photographers</a></li> <li><a href="../opacity/">Stockist</a></li> <li><a href="../menu/">General</a></li> </ul> <!-- END switch_user_logged_in --> <li class="top"><a href="{FULL_SITE_PATH}{U_LOGIN_LOGOUT}" id="privacy" class="top_link"><span>{L_LOGIN_LOGOUT}</span></a></li> <!--[if lte IE 6]></td></tr></table></a><![endif]--> </li> </ul> </td> <td width="43" valign="top" align="right"><img src="{FULL_SITE_PATH}{T_IMAGESET_PATH}buttons_right3.gif" width="43" height="32" alt="" /></td> <td valign="top"> <form method="get" action="{U_SEARCH}"> <table bgcolor="#DDDDDD" cellpadding="0px" cellspacing="0px" align="right"> <tr> <td style="border-style:none;" align="right"> <div style="background: url(/templates/mg_themes/images/m_blue/buttons_right4.gif) no-repeat left top; padding: 0px; height: 32px;" align="right"> <input type="text" size="20" title="Search" name="search_keywords" style="border: none; background-color: transparent; width: 127px; padding-left: 0px; padding-right: 0px; padding-top: 8px;"> </div> </td> <td style="border-style:none;" align="right"> </td> </tr> </table> </form> </td> <td width="12" align="left"><img src="{FULL_SITE_PATH}{T_IMAGESET_PATH}buttons_right2.gif" width="10" height="32" alt="" /></td> </tr> </table></td> <td height="32"><img src="{FULL_SITE_PATH}{T_IMAGESET_PATH}/buttons_right1.gif" width="9" height="32" alt="" /></td> </tr> Code (markup): Thanks for any thoughts on fixing this.
It happens from time to time. Sometimes more often, sometimes not. I'm almost sure its because of the list tags, but I can't figure out what is wrong with them.
Strange, I wasn't able to replicate it either. Maybe it was a server issue :| I noticed another thing: Under IE the caption of the drop-down sub nenus is aligned right. How can I change it to left. In FF it seems to be fine.