vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   Alternate JPG for IE6 for PNG site title image? (https://vborg.vbsupport.ru/showthread.php?t=264869)

TWood 06-07-2011 10:31 PM

Alternate JPG for IE6 for PNG site title image?
 
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-08-2011 12:28 AM

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 01: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.)


All times are GMT. The time now is 01:20 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00980 seconds
  • Memory Usage 1,706KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete