Monday, May 4, 2009

ASP.NET menu problem in IE8

If you use the ASP.NET menu on any of your web sites and just upgraded to IE8 then you probably just noticed that the drop down menu may have a white background.

What IE8 is doing is correct (by design), in the sense that in Standards mode IE8 is following the standards. By default the (element).currentStyle.zIndex returns "auto" when the zindex has not been set. The ASP.NET menu controls just assumes a different value. :)

Override the zindex property. Like such:

<style type="text/css">
z-index: 100;

<DynamicMenuStyle CssClass="IE8MenuFix" />

No comments:

Post a Comment


You May Like This