SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast ct_roy's Avatar
    Join Date
    May 2002
    Location
    Dublin, Ireland
    Posts
    74
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    IE8 CSS higher specificity selector being ignored

    I've got an IE8 specificity problem which is driving me nuts: http://proffetdemo.themesforge.com/shop/

    The following selector is applied correctly in Chrome/Firefox et. al.

    Code:
    .tfshop-3 ul.products li.product {
        width: 30.5% !important;
    }
    But in IE8 it is completely ignored. The selector above is an override of another selector:

    Code:
    ul.products li.product {
        float: left;
        margin: 0 0 20px;
        position: relative;
        width: 48%;
    }
    Anyone know why IE8 is ignoring the more specific selector?

  2. #2
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,276
    Mentioned
    179 Post(s)
    Tagged
    6 Thread(s)
    Hi,

    The rule is inside a media query and IE8 doesn't support media queries. You can try respond.js as a polyfill to add media query support to IE8.

  3. #3
    SitePoint Enthusiast ct_roy's Avatar
    Join Date
    May 2002
    Location
    Dublin, Ireland
    Posts
    74
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Paul O'B View Post
    Hi,

    The rule is inside a media query and IE8 doesn't support media queries. You can try respond.js as a polyfill to add media query support to IE8.
    Hey Paul, I haven't been in here in a while - great to see you're still helping folks out - you helped me out an awful lot about 7 or 8 years ago now! I was using respond.js as a polyfill but it turns out it wasn't kicking in at all for some reason - I eventually moved from @import to <link> statements and respond.js finally kicked in and all was well.

    Thanks,

    Ed

  4. #4
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,276
    Mentioned
    179 Post(s)
    Tagged
    6 Thread(s)
    Glad you got it sorted. I thought the name was familiar


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •