Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #18813

    Hi all,

    The following html code for IE doesn’t work. I added this line in the header.php.

    <!--[if !IE]><link rel="stylesheet" href="<?php echo get_bloginfo('template_url'); ?>/css/ie.css" type="text/css" /><![endif]-->

    Is there another way to add an if statement for IE?

    Thanks.

    #101039

    Hi Kiwy,

    The code you have there is designed to target everything except for IE. As far as I know, that is the only way of adding it in. If you see it output correctly in your source code of the generated page then it should be working.

    If you are trying to create a css file for all versions of IE then you would just use uf IE. Reference: http://css-tricks.com/how-to-create-an-ie-only-stylesheet/

    Regards,

    Devin

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

The topic ‘IF IE doesn't work’ is closed to new replies.