Search code examples
cssinternet-explorer-8responsive-designpolyfills

respond.js polyfill not working for last media query in IE8


I have two media queries in my css (not counting the print one) : @media screen and (min-width: 720px) {} and @media screen and (min-width: 1026px) {

I am using respond.js to get them to behave under IE8. The weird thing is that it works perfectly, except for the last media query where it reverts back to the css before the media queries. I.e., it works well until the window hits that 1026px threshold in width.

Anybody got an idea as to what is going on there ? Here is the link to the preview : http://bit.ly/i6ITPe

Thanks a bunch for any answer


Solution

  • I have been having several issues with this and have found it working on and off again. First off based on the forums I have been reading you should not include respond.js from modernizr, they are more than likely going to drop it. Also when you include respond.js add it after all of your stylesheets. It should be one of the last things to load. Hope that helps! =)