[UPHPU] PNG Support in IE
Wade Preston Shearer
lists at anavidesign.com
Fri Mar 25 09:46:55 MST 2005
> I've been trying a number of PNG hacks for IE on my home website... I
> can't seem to get things to work.
> I've tried the workaround found at
> http://webfx.eae.net/dhtml/pngbehavior/pngbehavior.html and a few
> variants, but I can't seem to get things to jive. Many of the
> techniques I want to use aren't working because I need IE to render
> *all* PNGs correctly, not just ones referenced the HTML (I'm using
> PNGs for backgrounds defined in my CSS styles).
> Anyone found a technique they like?
I have been down this road several times and from my experience will
recommend that you forget about it. Seriously, it's not worth it. Yes,
there are several hacks but it really isn't worth the amount of work
and debugging that it will take. Yes, you can use some hacks to get the
alpha filter to work, but it's messy as it cannot repeat an image. It
will only stretch it.
If you are going to do it, the best
search-and-replace-on-the-fly-as-the-page-loads script is "bgsleight".
Google for it and you will find it. I have found that this brings older
browsers on weak systems to their knees though if you have more than a
handful of images.
I have had more success simply using a CSS hack to alter specific
images in my stylesheet, thus:
/* ugly MSIE hack, because MSIE sucks */
* html .class_name
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2371 bytes
Desc: not available
Url : http://uphpu.org/pipermail/uphpu/attachments/20050325/8fd5fb9e/smime.bin
More information about the UPHPU