• I am developing a theme. It has some problems in IE7 and I understand that using an IE7 specific stylesheet is the recommended solution.

    I have spent well over an hour now trying to get IE7 to pick up the stylesheet. No joy though.

    I have put this snippet of code all over the place. Below is what I put in the <head> section. (I have used several different variations. I must be making some fundamental mistake:)

    <link href=”<?php bloginfo(‘stylesheet_url’); ?>” rel=”stylesheet” type=”text/css”>
    <!–[if IE 7]>
    <link rel=”stylesheet” title=”jugendstil” xhref=”https://www.vikingprincess.net/wp-content/jugendstil/IE7styles.css&#8221; type=”text/css” media=”all” /><![endif]–->

    My theme is at https://www.vikingprincess.net

    Hope you can help! I am at a brick wall… ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • Well, maybe try <!--[if IE 7.0]> – don’t know if that will help, but can’t hurt…. and make xhref plain ol’ href maybe….

    Thread Starter jojo0507

    (@jojo0507)

    Hi! thanks for the suggestions. I made the changes but that’s not the problem.

    I noticed that the stylesheet IS actually picked up, but IE7 appears to be ignoring what’s in it.

    I know that the sheet has to be called AFTER the original css instructions.

    Other instructions are to call the stylesheet in every html file. I am not clear how this applies to php. My best guess seems to be wrong.

    I have also read that the call should be made in the head section, just after the call to the main css sheet.

    However IE 7 doesn’t correct fixes in the sidebar. Also, when the IE7 css sheet is called, the left column magically moves 50px to the right. Despite there being nothing in the stylesheet that could cause the behaviour. It appears to be happening even if I comment out every single correction in the IE7 stylesheet.

    I am beginning to give up with this and find some more crude hack, something similar to the star html hack.

    Has anybody reading this actually successfully implemented an IE7 stylesheet with a WP site?

    hmm, scratch that

    I actually use code thats intended for non ie7 browsers ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Why isn’t my IE7 stylesheet working?’ is closed to new replies.