WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Using a different css for IE6 (6 posts)

  1. kmessinger
    Volunteer Moderator
    Posted 4 years ago #

    I have added an additional style sheet, OEAIE6.css and I have put a conditional use in the header.php file. It seems to do nothing in IE6.

    Do I have the correct syntax?

    Site: http://www.ourexcellentadventures.com
    Conditional code:

    <!--[if IE 6]>
    <link rel="stylesheet" href="http://www.ourexcellentadventures.com/wp-content/themes/OEA theme/OEAIE6.css" media="screen" />
    <![endif]-->

    Thanks.

  2. esmi
    Forum Moderator
    Posted 4 years ago #

    The syntax looks fine to me so I can only assume that your remedial CSS isn't quite right yet. If I'm not sure if I've targeted the CSS correctly, I normally add something like border:1px solid red; to whatever I'm working on at the time. If I see that border in the right place in the right IE version, I know I just have to play with the CSS some more.

  3. kmessinger
    Volunteer Moderator
    Posted 4 years ago #

    Thank you, I will try that.

  4. miocene22
    Member
    Posted 4 years ago #

    in your 'link' tag you did not put:

    type="text/css"

    I believe this is required

  5. kmessinger
    Volunteer Moderator
    Posted 4 years ago #

    miocene22 thanks. I added it below so it applies to all the css links in header.php.

    The only test I have for IE6 is browsershots.org and it looks like now it is working.

  6. Try IETester to use IE 6, 7 and 8 at the same time on Windows, but it can also be run virtually on OS X with VMware. etc.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.