Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

media queries internet explorer

i tried to use media queries in my sites. it works well in firefox and safari, but not for IE. does anyone know to make the media queries work well in IE(internet explorer 7 and 8).

here is the code : enter image description here

like image 610
yoel Avatar asked Dec 13 '22 12:12

yoel


2 Answers

Maybe this can also be useful:

To make media queries work in IE8 or older, you can use respond.js. Download the script file, copy it to your scripts folder (or wherever you like). Then put the line below into the head part of your html document (assuming you copied the file to the scripts folder).

<script type="text/javascript" src="scripts/respond.js"></script>

And that's it. IE will start to support media queries.

like image 165
turzifer Avatar answered Dec 29 '22 00:12

turzifer


Unfortunately, media query is not supported in Internet Explorer 8 or older. You can use Javascript to hack around. See these! You can use <!--[if lt IE <version>]> for compatibility issues.

like image 29
Anirudh Ramanathan Avatar answered Dec 29 '22 00:12

Anirudh Ramanathan