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

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo