If you believe in responsive design you probably use a lot of media queries. That's a CSS feature which gives us the power to add something like if statements. We are able to apply rules only if the current page meets certain conditions. In this article I'll show you how I use media queries in JavaScript.
We all know how it works. We type the media query and every rule define in it is applied to the page only if the conditions are valid.
Your new post is loading...