treehouse : what would you like to learn today?
Web Design Web Development iOS Development

Internet Explorer if statement help

  • 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
  • That's exactly what it should look like, no worries.
  • No worries swiss78....that's how it should look........Only IE will interpret such conditional statements.....other browsers will treat it as a comment........