Viewing 8 replies - 1 through 8 (of 8 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    How about use some JavaScript that adds a class to your <body> element dependent on the browser and browser version?
    I think this plugin does that http://ww.wp.xz.cn/extend/plugins/mobble/

    Thread Starter galitlevnew

    (@galitlevnew)

    it’s an interesting plug-in, but for now i would like to understand how to use <!–[if IE 9 ]> for example. I looked for this issue in WP forums but found only parts of info.
    I really could use a tutorial about this issue.
    Thnks

    Different developers approach the matter differently, and I am not aware of anyone having a specific tutorial like each of us would greatly appreciate. So, Google is about the best source you will find for IE tips and tricks.

    If you have a Child Theme and a plenty of determination, patience and a bit of ingenuity, try the IE CSS3 Support plugin and take a look at what it puts in its custom-style.css file when IE is used. You can delete that file as often as you wish, then analyze and make use of some of what it produces.

    Also take a look here…
    http://ww.wp.xz.cn/support/topic/ie-8-responsive-design?replies=16

    I have some great news if you are still looking for a solution here! There is a way to make a function call for a custom IE style sheet, then PIE.htc will handle things well from there. I still have a little more work to do myself, but my Twenty Twelve Child Theme is now responsive even in IE:
    http://www.nnysandbox.net/

    Check it out, if you wish, and I will report back after I have finished.

    Thread Starter galitlevnew

    (@galitlevnew)

    Hi leejosepho! your news sound very interesting, though i don’t really know what PIE.htc is. I tried using conditional remarks for this but it gets overrides by the default style-sheet. What can be the reason for that? here is a copy of my header.php where i put the remarks :
    Do i need to add something in the beginning of the IE style sheets?
    Thanks!

    Thread Starter galitlevnew

    (@galitlevnew)

    Sorry, here is the link : http://10gg.blogspot.co.il/

    Hi leejosepho! your news sound very interesting, though i don’t really know what PIE.htc is.

    Neither do I, really, but it somehow makes IE work properly…and my IE issues are now almost completely resolved.

    I tried using conditional remarks for this but it gets overrides by the default style-sheet. What can be the reason for that?

    I do not know, but I have read some things about IE not always working as expected with those conditionals. But if you can figure out a way to have your theme shift to a custom ie.css file whenever IE is encountered, I can tell you how I have implemented PIE.htc in conjunction with that kind of file.

    Edit: Maybe this will help…
    http://css-tricks.com/how-to-create-an-ie-only-stylesheet/

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Please only post here if it’s regarding WordPress.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘conditional style sheets for ie’ is closed to new replies.