Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Problem initiating call to conditional CSS

  • This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #37590

    Elsewhere in this site I was given the code that would allow my site to access a separate .css file when the visitor has an IE 7 browser. Specifically:
    Instructions were to enter this code into the HEAD section of my CSS template source code. However, when I paste that code in the HEAD it’s grayed out and unusable. How can I get the above code to be valid for shifting to the alternate CSS? Do I need a separate file resident on the server so this is recognized? Does it need to be bracketed by

    the first line of the code it STILL grayed out and so won’t be recognized. It’s driving me crazy! Help!

    #101019

    I’ve noted in my above question that some of my information did not make it in because of some character use. The specific code I refer to above starts with [!–If IE 7] and calls the alternate CSS. And, I’m asking if the code needs to be inserted between style /style. And even if it is, the [!–IE 7] is still grayed out and unuseable.

    #101020
    Senff
    Participant

    The correct code needs to be put between and (but should not be placed in any other tags, so do not place it between

    and or anything):

    Where do you see it greyed out exactly?

    #101021

    I did that. I’ve put a screen grab of that portion of my code in my dropbox at http://dl.dropbox.com/u/16638670/Screen%20shot%202012-04-11%20at%2011.04.04%20AM.png
    if you want to take a look. Driving me crazy!

    #101022
    theacefes
    Member

    HTML conditionals are greyed out because they are comments technically but since it has a conditional statement in it it will still work.

    #101023

    I did not know that. I thought gray was the kiss of death. Well, thanks, if you think it’s going to work, I’m going to run with it.

    #101025
    theacefes
    Member

    Well, you could always put something in the conditional CSS that you know you will see for sure and then test it on IE7. But yes the conditionals will always appear greyed out.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘CSS’ is closed to new topics and replies.