View Full Version : Transparency iin Gifs
arkum
06-14-2007, 02:09 PM
Hi,
Been asked to do some xhtml/css work which I haven't done for a while. Was wondering what the current thinking is regarding transparent gifs and IE's lack of support. What is the best solution at the moment?
Thanks
jsebrech
06-14-2007, 03:53 PM
I suppose you mean transparent png's, because last time I checked IE supported transparent gifs just fine.
For transparent png's the issue is that semi-transparancy is not completely supported. For this there are several workarounds:
- You can use pngfix for transparent png's included into the page via <img> tags in the html. See http://homepage.ntlworld.com/bobosola/index.htm .
- Or, you can do the same thing that pngfix does explicitly, which is using a directx filter to render the image. You'll probably want to go this route for images loaded at run-time (in javascript or set via css). See http://koivi.com/ie-png-transparency/ .
All in all, I've not come across a situation where I couldn't integrate transparent png's into an IE-compatible page. Though sometimes it can be sort of a pain.
And ofcourse, in IE7 transparency is supported correctly, so there's no more need for workarounds. Too bad IE6 is still so widely used.
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.