• Resolved eds-danny

    (@eds-danny)


    Hello.

    I have a WordPress site and I need to modify some little problems in IE6 and I don’t know why IE6 can’t view my “IE6.css” file.

    The file is stored correctly in the same folder as style.css and also the code is written well. The difference I saw is that, when I try to modify something from “IE6.css”, it render only in other browsers than IE6 ! And this is strange!

    Here is the code:

    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    
    <!--[if !IE 6]><!-->
    <link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/IE6style.css" type="text/css" media="screen" />
    <!--<![endif]-->

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter eds-danny

    (@eds-danny)

    Ah solved the problem.

    First you need to type the general css, and then the IE6 exception.

    I typed incorrectly the code:

    <!--[if !IE 6]><!-->
    <!--<![endif]-->

    Correct code:

    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    
    <!--[if lte IE 6]>
    <link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/IE6style.css" type="text/css" media="screen" />
    <![endif]-->

    lockettpots

    (@lockettpots)

    Your conditional code actually reads ‘if this isn’t IE6 then use this stylesheet

    you also have the comment tags wrong

    <!–[if IE 6]>
    Special instructions for IE 6 here
    <![endif]–>

    Thread Starter eds-danny

    (@eds-danny)

    Thank you sir. I figure that now.

    lockettpots

    (@lockettpots)

    Sorry hadn’t seen your second post when I posted

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WordPress IE6 CSS not working!’ is closed to new replies.