How do we create or implement media query even if HTML is not supporting | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How do we create or implement media query even if HTML is not supporting

designing of web page for mobile phones

3rd May 2017, 2:30 PM
Priya Pal
Priya Pal - avatar
1 Answer
+ 3
If the browser doesn't support media queries then I am afraid you cant use it. But however you can use JavaScript to check browser window width and height, then change styles from JavaScript. You can also add or remove external CSS files based on the viewport width and height. Hope this helps.
3rd May 2017, 2:39 PM
Apel Mahmod
Apel Mahmod - avatar