Hi all
IE has stumped me once again.
Using Jquery i am trying to create a (simple 2-tier) dropdown menu. The following works fine in FF and Chrome but in IE the submenu does not get displayed. Can anyone explain to me why and suggest a workaround or even tell me what i am doing wrong? Posted it here coz obviously a CSS issue.
I have a ul with constituent lis. On a hover i want a submenu (ul) to be displayed to the right of the li that was hovered over. IN IE nothing gets displayed.
(The display of menus is toggled on hover)
(Relevant) CSS
<style>
#splitmenu {
width : 186px;
}
#menu {
width : 158px;
display: none;
}
#menu ul {
list-style-type:none;
padding : 0px;
margin-top : 2px;
}
#menu ul li {
cursor : pointer;
padding : 8px 4px;
position : relative;
}
#menu ul li.hovered {
background : #DDDDDD;
}
#rerun {
border-right: 0px;
}
.ui-buttonset .ui-button {
margin-left:0;
margin-right:-0.3em;
}
li.submenuli div.arrow {
position : absolute;
right : 4px;
top : 0px;
background : url(images/arrow.gif) no-repeat;
width : 4px;
height : 7px;
margin-top : 12px;
}
li.submenuli .submenu {
display : none;
position : absolute;
top : 0px;
left :160px;
width : 158px;
}
(relevant HTML)
<div id="splitmenu">
<div>
<button id="rerun">DropDown Menu</button>
<button id="select">Select an action</button>
</div>
<div id="menu" class =" ui-widget-content ui-widget ui-widget ui-corner-all">
<ul id="menu-ul">
<li>Close Menu</li>
<li class ="submenuli" id="menu_summary">Show Summary<div class="arrow"></div>
<ul class ="submenu ui-widget-content ui-widget ui-widget ui-corner-all">
<li>Show Questions</li>
<li>New Question</li>
<li>Show Pointers</li>
</ul>
</li>
<li>Show Questions</li>
<li>New Question</li>
<li>Show Pointers</li>
<li>Index</li>
<li>Previous Chapter</li>
<li>Next Chapter</li>
</ul>
</div>
</div>
IN FF and chrome the submenu (absolute positioned ul in relatively positioned li top 0px left ul width + 2) gets displayed on hover. In IE it doesnt show at all - might flicker.
Thanx in advance





Bookmarks