Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS

media queries in IE

Hey ervybody!

Got problems on my page using mediaqueries. In mozilla, chrome, safari everything work out perfectly, just IE doesn´t work at all. I even tried it in IE 11, IE 10 and IE 9. Just at every 20th time in IE11 it work out(no clue why) well at least on the start-page but all the other times the screen stuck at one size and moreover the css-styling (margins) doesn´t work correctly. I also tried to impliment modernizr in the headsection with:

```<script src="//code.jquery.com/jquery-1.11.0.min.js"></script> <script src="../../js/modernizr.js" type="text/javascript"></script>

But it does´t change anything at all.  Any suggestions? I already spend hours to find some solution at the internet, but didn´t find anything to solve the problem. I just read, that for IE 9 and above, it should be no problem for the browser to deal with mediaqueries, so I wonder even more about my problems...?!?!

1 Answer

Ron McCranie
Ron McCranie
7,837 Points

Without seeing all the markup it's difficult to pin point the issue. I would start by making sure your media query syntax is correct as IE can be very picky about syntax and modern browsers can be more forgiving.