Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    xia is offline
    New to the CF scene
    Join Date
    May 2007
    Thanked 0 Times in 0 Posts

    IE7 condition css link only works sometimes

    I have a shared head on my app which includes

    <!--[if IE 7]>
    <link rel="stylesheet" type="text/css" href="stylesheets/ie7.css" />

    It works on SOME pages, but not all pages! The link is in a single file that appears on every page of my site, so I can not for the life of me figure out why the styles in it are only applied on some pages, even for the same elements (such as buttons in my header which also appear on every page).

    I can not show you a live version at present.

    I have tried clearing my cache, and restarting IE. Nothing is changing the fact that only some pages are parsing the IE7 css file.

    Is anyone else having this problem?

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    In a place far, far away...
    Thanked 1,043 Times in 1,019 Posts
    Nope. Why can't you show us a live page? Help us help you. Its not like we can magically find out what the rest of your code looks like. For all we know there is another stylesheet overriding the one you are trying to use. The conditional comment should contain the last stylesheet in the head of your document.


    Posting Permissions

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