Firefox 3 media queries not working
Closed this issue · 0 comments
bokus commented
I still have clients using FF 3 and it does not support @media, so I added at the end:
<script> // Respond.js for FF<3.5 if (/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)){ var ffversion=new Number(RegExp.$1); if (ffversion<=3.5){ var headID = document.getElementsByTagName("head")[0]; var respondNode = document.createElement('script'); respondNode.type = 'text/javascript'; respondNode.src = 'js/libs/respond.min.js'; headID.appendChild(respondNode); } } </script>and now working with FF 3 (didn't check below)
not sure if it's the best way to deal with it...