diff --git a/css/GroupedCmsMenu.css b/css/GroupedCmsMenu.css index 97cbbae..a29d7fb 100644 --- a/css/GroupedCmsMenu.css +++ b/css/GroupedCmsMenu.css @@ -1,6 +1,7 @@ #top #MainMenu li.children > a { background: url(../images/bg-menu-children.gif) no-repeat top right; padding-right: 17px; + float: none; } #top #MainMenu li.current.children > a { @@ -25,9 +26,10 @@ #top #MainMenu li ul { display: none; + float:none; position: absolute; z-index: 1000; - margin-top: 33px; + top: 33px; border: 1px solid #AAA; border-top: none; margin-left: -1px; @@ -37,7 +39,8 @@ } #top #MainMenu ul li { - display: inline; + display: block; + width: 100%; float: none; margin: 0; } @@ -46,7 +49,6 @@ background: #6A7580; display: block; float: none; - padding-right: 30px; } #top #MainMenu li.current ul a { diff --git a/javascript/GroupedCmsMenu.js b/javascript/GroupedCmsMenu.js index 32f9f24..14078c3 100644 --- a/javascript/GroupedCmsMenu.js +++ b/javascript/GroupedCmsMenu.js @@ -3,4 +3,10 @@ function() { $(this).addClass("active").find("ul").show(); }, function() { $(this).removeClass("active").find("ul").hide(); } ); + + // ie hack to set css width explicitly on sub menus + // so that the sub menu items can expand to that width + $('#MainMenu li.children ul').each(function(){ + $(this).css('width', $(this).width()); + }); })(jQuery); \ No newline at end of file