How to pick CSS file with javascript if -


would possible me like

<link href="nav.css" type="text/css" rel="stylesheet" />

in this?

<script>     if (screen.width <= 800) {         link css here!     } </script> 

just use css media query so

you can read media queries here

@media(max-width: 800px) {     /*      * enter css here      */ } 

Popular posts from this blog

node.js - How do I prevent MongoDB replica set from querying the primary? -

c# - Randomly pick a specific int from a 2D Array -

php - Angularjs http.delete is not working after deploying project on server -