- #subMenusContainer ul#hosting {
- width: 486px;
- height: 225px;
- background: transparent url("../images/menu/mega_bg_hosting.png") no-repeat 0 0;
- z-index: 500;
- }
While most PNG alpha issues are with versions before IE7, I am facing an issue with IE8 and a 32-bit PNG file (or even 8-bit) that contains alpha. The screenshot attached shows the black outline for a hover-on menu item when tested in IE8. I've also attached the actual PNG image for your reference . The relevant CSS is as follows:
The relevant HTML section:
- <li id="hosting"><a href="#">Anabantoidei</a>
- <ul id="hosting">
- <div>
- <a href="BUSINESS">Business</a><br />
- <a href="INVITATION">Social & Invitation</a><br />
- <a href="SHIPPING">Shipping & Packaging</a><br />
- <a href="MOST_POPULAR">Most Popular</a>
- </div>
- </ul>
- </li>
The PNG works fine in Firefox, but shows the ugly black outline in IE8. I tried everything, from using the "filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop, src='images/menu/mega_bg_hosting.png');" CSS style, to the FixPNG javascript from clientcide.com (it only works for IE6 and below, so can't see any results for IE8) and others. I don't know how to fix this at all, and I suspect it's because of the fact that the background-image is being used during hover state, unlike most conventional uses.
Any ideas how to fix this? Thanks for any help!
-pnet


