PDA

View Full Version : png fix for ie6


sudhakararaog
10-01-2009, 08:34 PM
i am using a png image and i have used the code and the iepngfix.htc file however in ie6 the issue is not fixed and also when i run the html file i get a pop up error
==================================================
An error has occurred in the script on this page

Error: Access is denied to filepath/iepngfix.htc
==================================================

i am presently running this file on a local computer, not on any webserver or a localhost

my html code is

<div class="divname">
content <br />
<img src="info.png" />
</div>

my css code is

img, .divname{
behavior: url(iepngfix.htc)
}

i also tried

img, div{
behavior: url(iepngfix.htc)
}


the iepngfix.htc file is in the same directory as the html and css file

please advice how to fix this.

thanks

Pegasus
10-01-2009, 11:06 PM
To the best of my knowledge, there's no such CSS element as "behavior".

LadynRed
10-06-2009, 10:05 AM
Well.. it's proprietary to IE, (obviously) but it DOES work as intended to force IE to display transparent PNGs. However, the access denied is not an issue with the method, it has to be permissions elsewhere.