0

I have a IE hack problem where I need to add media queries specifically for IE7(IE8 is working fine). I am using respond.js also. So when i do something like this:

    <!--[if IE]>
            <style rel="stylesheet" type="text/css">

@media screen and (max-width:500px){
.abc{width: 100px !important;}

}

</style>
<![endif]-->

IE7 doesnot understand it. Please suggest. Thanks in advance.

user3450590
  • 341
  • 2
  • 14

2 Answers2

0

Media queries do not work below IE8. But take a look at these plugins and tutorials about how to support media queries in IE8 and below:

css3-mediaqueries-js

Respond.js

0

Actully IE8 and lower version doesn't support Media Query For IE9 we can use this

<!--[if lt IE 9]>
    <script src="http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js"></script>
<![endif]-->
nikita
  • 273
  • 3
  • 15