Forums

Separate style sheet for internet explorer (3 posts)

  1. blairm
    Member
    Posted 2 years ago #

    I've been customizing a theme for a new wordpress blog and need help attaching a seperate stylesheet for Internet Explorer. My blog is just the way I want it in Firefox, but the layout is off in IE. I created a separate stylesheet (iestyle.css) to hold the IE fixes, so as not to clutter up the main stylesheet. I inserted the following line into my header.php file

    <!--[if lte IE 6]>
        <link rel="stylesheet" type="text/css" href="iestyle.css"

    <![endif]-->
    It is within the <head> tags and after the initial stylesheet direction.
    The line I added shows up when I view the source code in IE 6, but none of the changes I make in the file show up when looking at the page in IE 6.
    I'm pretty new to CSS and PHP so any help would be greatly appreciated. Thanks!

  2. drmike
    Member
    Posted 2 years ago #

    First thing I would try is to use an actual URL for the href. Just the file name will cause issues when you advance into your site.

  3. blairm
    Member
    Posted 2 years ago #

    Wow, that seems to have worked. Now I can start tackling all my IE issues!
    Thanks drmike

Topic Closed

This topic has been closed to new replies.

About this Topic