Search code examples
pnginternet-explorer-6compatibility

transparent png in internet explorer 6


I want to make a website ie 6 compatible. I have included two PNG files (PNG-8) with <img src> tag. When I open the website with IE6, the pictures appears for a short moment and disappears again. How can I fix that without any javascript or other additional files?


Solution

  • If adding JS is really not an option, you can try using the following filter:

    img {
        filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(...);
    }
    

    I would, however, not recommend this... the JS methods are generally better.