Reputation: 954
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
Upvotes: 3
Views: 3871
Reputation: 11444
There are a few things to bere in mind when using respond.js
link
elementdocument.write
, jQuery etc,. @Import
statements are not followed inside stylesheetsHope this helps.
Upvotes: 1
Reputation: 917
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! =)
Upvotes: 3
Reputation: 1215
I'm not sure if this applies to you, but I just found an issue that breaks the css while using respond.js.
do you have any elements that open and close with no styles i.e:
ul.demo{}
I found this was breaking my css in ie 8 and below
Upvotes: 0