I rather use
#logo {
background: url('img/logo.png') no-repeat;
...
}
* html #logo {
background: none;
filter:
progid:DXImageTransform.Microsoft.AlphaImageLoader(src='img/logo.png',sizingMethod='scale');
}
or better put the IE junk in css linked by conditional comments.
--
Jan Brasna aka
There is no need to use JavaScript for PNG in IE. I am using empty GIF
and CSS like this:
#CaptionImage img {
background: url(i/title.png);
background: expression('none');
filter:
progid:DXImageTransform.Microsoft.AlphaImageLoader(src='i/title.png',
sizingMethod='crop');
JW wrote:
Hi,
A developer on my project showed me a site with a lot of PGNs using alpha transparency. Formely we had to include a piece of javascript to get it working the way we want in IE 6.x
[skipped]
I have uploaded all latest updates from WindowsUpdate to confirm what
you wrote. PNG still
JW wrote:
Hi,
A developer on my project showed me a site with a lot of PGNs using alpha
transparency. Formely we had to include a piece of javascript to get it working
the way we want in IE 6.x
Since the last patchday it seems that IE 6.x got a security update that fixed
the alpha transparency i
So far, IE 6.x on Windows supports PNG-8, which has index transparency.
The only way I know of to make IE support alpha transparency is to use a
javascript, such as Dean Edward's IE7, or to use Microsoft's proprietary
"filter:" in CSS (Read more here:
http://www.koivi.com/ie-png-transparency/)