Thursday, April 16, 2009

Asp.Net Menu and Internet Explorer 8 (IE8)

If you use Asp.Net Menu control, you have surely noticed that with Internet Explorer 8 there are a problem with submenus.

Microsoft give out a patch for webservers IIS to fix that problem, but for me there is a better solution: working with CSS.

The Css Class to create is very simple:

z-index: 100;

and then you ave to apply it to DynamicMenuStyle tag:

<asp:Menu ID="MioMenu1" runat="server" ... >
<DynamicMenuStyle CssClass="IE8Fix" />

No comments: