...

View Full Version : IE code help, please



SHEPME
05-12-2012, 09:51 PM
Good afternoon:
I am working on a web page that has a background image on the top half.
The bottom half is just assigned a color code that matches the color of the top half image.
Unfortunatly when viewing the page in IE8 the bottom half color is slightly off.
In the rest of the major browsers it is spot on!
What code can I use in the head of the document that lets the page know that if it is being opened with IE to use a different "css" page that has different color code that matches in IE.

Thank very much in advance
Shepard

Excavator
05-12-2012, 10:48 PM
Hello SHEPME,
Your question invlolves both colors and images we can't see, along with all the usual variables of things that can go wrong. The only way you're going to get any real help is by giving us a link to the test site so we can see the mismatch for ourselves.

SHEPME
05-12-2012, 11:03 PM
Thanks for the response.
I do not have the site up as I do not have a web hoster as of yet.
The question is not regarding colors. I am looking for a code similar to this one

<!--[if lt IE 7]><script type="text/javascript">
window.location.href ="http://www.angelfire.com/jonesproperties/sun/iewarning.htm";
</script>
<![endif]-->

that will re-direct anyone using internet explorer to a different css control page.

Thanks

VIPStephan
05-12-2012, 11:08 PM
What code can I use in the head of the document that lets the page know that if it is being opened with IE to use a different "css" page that has different color code that matches in IE.

That is the wrong approach. IE doesn’t usually display colors differently than any other browser. However, what could lead to problems is the color profile in the images if they are viewed in a browser that doesn’t support color management. There are a few sources on the internet explaining the problem, http://viget.com/inspire/the-mysterious-save-for-web-color-shift among them. The bottom line is when you export your images, for the most consistent look set the image editing software to “don’t color manage” or the profile to “monitor RGB” or something like that.

SHEPME
05-12-2012, 11:10 PM
Thanks alot very informative!
I appreciate your help.

Excavator
05-12-2012, 11:12 PM
The question is not regarding colors.

I don't mean to sound like I know it all or imply that your question is about colors, ... I'm just saying there are a lot of websites that match a background color to an image just fine and that maybe something else in your code is having an affect on that.

If you already know about conditional comments and think that is the solution for you, that's ok too.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum