Grow your CSS skills. Land your dream job.

Internet Explorer if statement help

  • # May 7, 2009 at 11:25 am

    Hello, please help.

    I have used a basic if statement to link to a ccc file for ie6(see below)

    <!–[if IE 6]>
    <link rel="stylesheet" type="text/css" href="css/ie.css"/>
    <![endif]–>

    the problem i am having is that the whole piece of code is commented out and looks inactive? is this normal (i dont think so as the code will be skipped) and why ?

    can somebody please explain why this is happening and what i can do.

    Thanks

    SWISS78

    # May 7, 2009 at 11:41 am

    That’s exactly what it should look like, no worries.

    # May 7, 2009 at 11:52 pm

    No worries swiss78….that’s how it should look……..Only IE will interpret such conditional statements…..other browsers will treat it as a comment……..

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".