So CSS @media
queries don't work in IE8.
@media (min-width: 768px) {
/* some css */
}
@media (min-width: 972px) and (max-width: 1024px){
/* different css */
}
Now, I could create separate CSS files named IE_min768.css
and IE_min972_max1024
and use Javascript to dynamically load and unload the files as the page width is adjusted. But that violates D.R.Y. and would be a pain to maintain CSS in multiple places.
Would it be possible to use Javascript (in IE only) to actually read the CSS file, detect the @media
sections and dynamically apply that CSS to the browser in the correct situation?