Log in

View Full Version : Pb .png transparency in IE6



zintelix3d
12-27-2007, 12:20 PM
hell:D, i am using transparent .png pictures in my web site, http://bendahmane.societeg.com the result is perfect in Firefox but in IE6 the transparency is replaced by à white background?:confused::( please:( is there some one who can help me ? Thanks :D

simonf
12-27-2007, 01:17 PM
Also found this.. the problem seems to go away with I.E7.. not sure what the issue is..

simonf
12-27-2007, 01:20 PM
Hi

Did find this on the web...

"One issue is the bug with I.E6 not rendering PNG images correctly. I.E6 is unable to produce the desired transparency, causing our site to look very unappealing. We considered hacking the browser using CSS codes, but it would cause our site unable to validate against W3C standards (which we are advocating). In the end, we chose to ignore this problem since I.E7 is released (which renders PNG correctly).
"

jscheuer1
12-27-2007, 04:50 PM
Not ideal in all situations, but valid:

http://homepage.ntlworld.com/bobosola/

tech_support
12-28-2007, 08:30 AM
Alternatively, right back at home:
http://www.dynamicdrive.com/forums/showthread.php?t=22176

jscheuer1
12-28-2007, 10:42 AM
Alternatively, right back at home:
http://www.dynamicdrive.com/forums/showthread.php?t=22176

Not good, it will unnecessarily burden IE 7.

zintelix3d
12-28-2007, 05:21 PM
Hello, Is there other way to resolve this problème specially for IE6 & IE7, because many peoples disable javascript! like me (spywares and virus), thank for your answers... comming soon

zintelix3d
12-28-2007, 05:30 PM
Alternatively, right back at home:
http://www.dynamicdrive.com/forums/showthread.php?t=22176

hello :D, I tryed this code, it's work for pictures under IE6 but not for backgroud pictures Is there a solution? :confused: thank you sooooo much :cool:

jscheuer1
12-28-2007, 06:12 PM
These png fixing scripts, there are a few around, use the alpha image loader filter and some scripting and css gymnastics in IE to mimic an image. That's why they work well with images.

However, the alpha image loader filter itself is actually specifically designed for background image effects. This is a little different than a regular background-image though.

Generally with background images, what you can do is to use IE version specific comments for styles to use the filter for IE 5.5 and 6, allowing all others to use the regular background image style.

Important Note: Many folks are unaware of the fact that IE 7 handles png images just fine on its own. Or if they are, seem to forget about this when tweaking earlier IE versions. The tweaks used for IE 5.5 and 6 should never be written so as to cause IE 7 to use them, because these tweaks aren't as accessible in any browser (IE or otherwise), as are regular images and css.