CSS Conditional IE Comment - How To Get To Work??? Help!!!

Discussion in 'HTML & Website Design' started by meybaud35mm, Sep 15, 2006.

  1. #1
    I absolutely cannot get my special IE style sheet to load. It is still containing elements that are within my FF style sheet which makes it obvious that its not working. Here is the code I am using...


    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Untitled Document</title>
    <link href="interiorstyle.css" rel="stylesheet" type="text/css" />

    <style type="text/css">
    <!--[if IE6]>
    <style type="text/css" media="all">
    @import "iehmeinterior.css";</style>
    <![endif]
    body {
    background-color: #211F72;
    font-family : tahoma;
    font-size : 10pt;
    color : #000;
    }
    -->


    </style></head>
     
    meybaud35mm, Sep 15, 2006 IP
  2. LazyD

    LazyD Peon

    Messages:
    425
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Try this:

    <!--[if lte IE 6]>
    <link rel="stylesheet" type="text/css" href="filenamehere.css" />
    <![endif]-->
     
    LazyD, Sep 15, 2006 IP