PDA

View Full Version : Site Logo/ Watermark - Transparent PNG issue



sdzeltwanger
02-23-2010, 04:27 AM
1) Script Title: Site Logo/ Watermark

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/logo.htm

3) Describe problem: I'm just wondering if there is a way around the Internet Explorer transparent PNG glitch using this script that doesn't involve changing my image to a gif, because it looked like crap in other browsers when I did that.

jscheuer1
02-23-2010, 05:26 AM
Since IE 7 there has been no problem with transparent .png images. For IE 5.5 through 6 one may use iepngfix:

http://www.twinhelix.com/css/iepngfix/

or some other such strategy. One thing many people misunderstand about these strategies is that they should not be used on IE 7 or greater because those browsers have no problem with .png. So the stylesheet that implements them should be restricted to IE 6 and less via IE conditional comments:

http://msdn.microsoft.com/en-us/library/ms537512(VS.85).aspx