Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New Coder
    Join Date
    Mar 2011
    Posts
    96
    Thanks
    7
    Thanked 0 Times in 0 Posts

    IE code help, please

    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

  • #2
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,675
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    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.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #3
    New Coder
    Join Date
    Mar 2011
    Posts
    96
    Thanks
    7
    Thanked 0 Times in 0 Posts
    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

  • #4
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,783
    Thanks
    6
    Thanked 1,022 Times in 995 Posts
    Quote Originally Posted by SHEPME View Post
    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-mysteri...eb-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.

  • #5
    New Coder
    Join Date
    Mar 2011
    Posts
    96
    Thanks
    7
    Thanked 0 Times in 0 Posts
    Thanks alot very informative!
    I appreciate your help.

  • #6
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,675
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Quote Originally Posted by SHEPME View Post
    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.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •