PDA

View Full Version : Alternate JPG for IE6 for PNG site title image?


TWood
06-07-2011, 09:31 PM
I'm using a PNG with alpha that puts white letters over the default dark blue header. In IE6, that doesn't work, I know. Is there a simple way to swap in a JPG for IE6? I know I can just make a JPG the default by using an image with the matching blue background, but I *shouldn't* have to. :p

I was showing the site to the Chase Bank guy when opening a business account for PayPal receipts, and they are on....IE6. As is the state agency I work for.....Die IE6, die!

LifesGreatestGift
06-07-2011, 11:28 PM
In the CSS that defines your image do the following

<!--[If lte IE 6]>
background-image:hxxp://image.jpg;
<![endif]-->

<!--[If gt IE 6]>
background-image:hxxp://image.PNG;
<![endif]-->

<!--[if !IE]>-->
background-image:hxxp://image.PNG;
<!--<![endif]-->

TWood
06-08-2011, 12:27 PM
I made a JPG the default image because it was simple enough to do. But, the header has a subtle gradient image that also has to be removed to make it all blend in. I don't think it's a good idea to add those gradients to the default CSS because there are a lot of new owners of vBulletin who might not understand the finer complications of CSS.

(Just trying to give some constructive feedback.)