I've got an IE8 specifity problem which is driving me nuts: http://proffetdemo.themesforge.com/shop/
The following selector is applied correctly in Chrome/Firefox et. al.
.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:
ul.products li.product {
float: left;
margin: 0 0 20px;
position: relative;
width: 48%;
}
Anyone know why IE8 is ignoring the more specific selector?
UPDATE 1: 15/02/13 I now think this might be related to respond.js not loading correctly in IE8 - it looks like other media queries are not kicking in in IE8 - hmm...
-
1You've got extra closing anchor tags with "tf_prodthumb_inner" which may be causing an issue.Billy Moat– Billy Moat2013年02月15日 16:01:57 +00:00Commented Feb 15, 2013 at 16:01
-
@BillyMoat just spotted that issue - thanks for pointing it out - don't think it solves the IE8 issue thoughColm Troy– Colm Troy2013年02月15日 16:14:02 +00:00Commented Feb 15, 2013 at 16:14
-
@Mr.Alien not sure what you mean?Colm Troy– Colm Troy2013年02月15日 16:14:50 +00:00Commented Feb 15, 2013 at 16:14
-
He means does the rule telling it to be 30.5% come after the ruling telling it to be 48%?Billy Moat– Billy Moat2013年02月15日 16:17:41 +00:00Commented Feb 15, 2013 at 16:17
-
1In your stylesheets you seem to have the 48% width declared first but you have the 30.5% width declared within a media query of (min-width: 768px). If that's the case then IE is behaving correctly and Firefox is wrong but I'm not sure why.Billy Moat– Billy Moat2013年02月15日 16:39:26 +00:00Commented Feb 15, 2013 at 16:39
2 Answers 2
try adding the tag in front of the class. like div.tfshop ul.products li.product
1 Comment
@media only screen and (min-width: 768px) {
...
div.tfshop-3 ul.products li.product {
width: 30.5% !important;
}
...
}
you have these styles defined into @media conditional queries which is not supported by IE8 and lower http://caniuse.com/css-mediaqueries
This is what http://wicky.nillia.ms/enquire.js/ probably could help to deal with it in easier way.