Has anyone used the solution given here for PNG transparency http://koivi.com/ie-png-transparency/?
I'd like to use png's in the menu if possible, which the javascript solution doesn't work with (as the images are in css, not html).
Any thoughts?
PNG transparency
Re: PNG transparency
I've not tried anything yet, I'm just doing a lot of reading at the moment. I'm not terribly comfortable with PHP at this stage, so I'm trying to get my head together before trying things.
It says on the page I linked to that it interferes with javascript work arounds, which is partly why I asked if anyone had used it.
It says on the page I linked to that it interferes with javascript work arounds, which is partly why I asked if anyone had used it.
Re: PNG transparency
I also prefer png image files because I can get alpha channel transparency and 16 million colors. However, as many know, IE doesn't play well with transparent png files. I found a fix that works well for me. I won't swear that it works with png files in CSS because I call the images inside the divs in the templates.
The information about this can be found here: http://homepage.ntlworld.com/bobosola/pnghowto.htm. The file itself is called pngfix.js. The code to call it is:
Works in IE 6 just as well.
The information about this can be found here: http://homepage.ntlworld.com/bobosola/pnghowto.htm. The file itself is called pngfix.js. The code to call it is:
Code: Select all
<!--[if lt IE 7.]>
<__script__ defer type="text/javascript" src="pngfix.js"></__script>
<![endif]-->
- Elijah Lofgren
- Power Poster
- Posts: 811
- Joined: Mon Apr 24, 2006 1:01 am
Re: PNG transparency
It doesn't make sense, but this CSS code seems to work to make PNG's transparent in IE:
Hope this helps,
Elijah
Code: Select all
img { behavior: url(iepngfix.htc); }
Elijah
Note: I don't have time to take on any more projects. I'm quite busy. I may be too busy to reply to emails or messages. Thanks for your understanding. 

Re: PNG transparency
It makes more sense when iepngfix.htc (and blank.gif) are your css directory.Elijah Lofgren wrote: It doesn't make sense
Regards,
D
- Elijah Lofgren
- Power Poster
- Posts: 811
- Joined: Mon Apr 24, 2006 1:01 am
Re: PNG transparency
But what's weird is that those files were not and it still worked.Dee wrote:It makes more sense when iepngfix.htc (and blank.gif) are your css directory.Elijah Lofgren wrote: It doesn't make sense
Regards,
D

- Elijah
Note: I don't have time to take on any more projects. I'm quite busy. I may be too busy to reply to emails or messages. Thanks for your understanding. 
