css - Media Queries not working in Internet Explorer ie6-ie8 -


the code given written css not working @ in ie(6-8)

 @media screen , (max-width: 340px) { .topmaindivleft{ width:100%; margin:0px; padding:0px; height:auto; float:left; } .topmaindivright{ width:100%; margin:0px; padding:0px; height:auto; float:left; } } 

want know codes make work in ie6-8 making responsive website

that's because media queries aren't supported in ie6 through ie8.

this polyfill, called respond.js, may - https://github.com/scottjehl/respond.

respond.js - fast & lightweight polyfill min/max-width css3 media queries (for ie 6-8, , more)

here's demo example.


Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -