For the purposes of this question, consider this:
<div class="has_transparent_png">
<a href="foo.html">
<span>
<img src="logo.jpg" />
</span>
</a>
</div>
The Problem: In IE6, the <a>
is not clickable. Here's the PNG replace I'm using:
.has_transparent_png {
background-image: url(images/transparentpng.png);
}
* html .has_transparent_png {
behavior: expression((this.runtimeStyle.behavior="none")&&(this.pngSet?this.pngSet=true:(this.nodeName == "IMG" && this.src.toLowerCase().indexOf('.png')>-1?(this.runtimeStyle.backgroundImage = "none", this.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + this.src + "', sizingMethod='image')", this.src = "images/spacer.gif"):(this.origBg = this.origBg? this.origBg :this.currentStyle.backgroundImage.toString().replace('url("', '').replace('")', ''), this.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + this.origBg + "', sizingMethod='crop')", this.runtimeStyle.backgroundImage = "none")), this.pngSet=true));
}
How can I make the <a>
clickable? I have no control over the HTML. Only the CSS. Thanks in advance.