Media Queries & Internet Explorer
In the newly launched redesign of the RevSystems, Inc agency site, I came across a few quirks with media queries that everyone should be aware of.Â
1. Media Queries are sensitive to change
Media queries, as we know them today, have an extremely sensitive syntax. In many modern browsers, it won't necessarily matter how to write them out but for support in older browsers and for support with polyfills like Respond.js and CSS3-MediaQueries.js - the syntax is critical.
Ex: Â Â Â Â @media screen and (min-width: 1200px) {} Â
=/=Â
    @media screen and(min-width: 1200px){}
**Spaces are critical
2. Internet Explorer treats media queries very specifically. (Go figure)
Media Queries in Internet Explorer are not natively supported, but with the polyfills listed above, they can be forced to work. However, these media queries also cannot be formatted any way you want.
Ex:Â Â Â Â Â @media (min-width: 1200px) {
#this{will:work;in:modern browsers !only;}
} Â
   @media screen and (min-width: 1200px) {
#this{will:work;in:all browsers;}
.if_you{are:using !polyfills;}
} Â
3. When properly vetted, media queries are your friend. Don't be afraid to use them to handle breakpoints gracefully.
One important thing to understand is that your responsive design will have a lot of breakpoints. The more complex the site is, the more changes of items to work differently at modified resolutions, font sizes, browsers and more. Use media queries to your advantage and test across multiple use cases. That way, you can be very specific (min-width + max-width) with your queries and have a well tested responsive site.
So, as with any code syntax, there are specific rules you need to follow in order to be safe across multiple browsers. Good news is that it isn't terribly difficult to be successful in IE with this modern technique.












