Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / IE6 PNG Background Removes Additional Images

IE6 PNG Background Removes Additional Images

Locked

Views: 714

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
11 Feb 2009, 4:58 PM
#1
thunderhawk6630 avatar

thunderhawk6630

New Zenner

Join Date:
Oct 2008
Posts:
19
Plugin Contributions:
0

IE6 PNG Background Removes Additional Images

Using Version 1.3.8

I had transparent png for my background.

It was applied to the body tag through the css stylesheet.

Long story short, if you have a transparent png as your background, the additional images on your product pages would just flat out disappear.

This only happened in IE6 as far as I tested. I noticed no problems in Firefox, IE7 and Safari.

To fix the problem, I simply sacrificed the transparency and made the file a jpg.

Another workaround would be to create a conditional stylesheet for IE6. I believe that there are additional hacks that can be implemented to have IE6 use a transparent background, but in my instance it didn't bother me to leave it out.

Hope this helps someone, this was the last place I thought to look. I skipped over it to fix another IE6 error and ended up tripping over the solution. Probably would not have found it otherwise.

Probably not a Zen Cart error, but good to know.

:smile:

11 Feb 2009, 5:03 PM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,643
Plugin Contributions:
0

Re: IE6 PNG Background Removes Additional Images

Moderator's note: thread moved out of Bug Reports since it is not a Zen Cart bug.

11 Feb 2009, 11:26 PM
#3
thunderhawk6630 avatar

thunderhawk6630

New Zenner

Join Date:
Oct 2008
Posts:
19
Plugin Contributions:
0

Re: IE6 PNG Background Removes Additional Images

Sorry, wasn't really sure where to put it.

11 Feb 2009, 11:51 PM
#4
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: IE6 PNG Background Removes Additional Images

IE6 simply doesn't support transparent GIFs. Yes, there are javascript hacks to get around that, but rarely is it worth it. Better to accept that IE6 is lacking and do the best you can for that browser with a targeted stylesheet (there's a mod for doing this in the downloads area) and give users of better browsers a better browsing experience.

12 Feb 2009, 8:36 PM
#5
thunderhawk6630 avatar

thunderhawk6630

New Zenner

Join Date:
Oct 2008
Posts:
19
Plugin Contributions:
0

Re: IE6 PNG Background Removes Additional Images

Yeah it was weird, I already have a workaround for my logo which is png, and a few other random images that need transparency.

What really throwing me off is that the workaround worked for the background also, but somehow broke the additional images. Everything looked fine, but additional images were nowhere to be found.