In my CSS file I have this:
@media (max-width: 480px) {
div {
background: red;
}
}
Emulate with javascript
Is there a way to emulate 480px device width with Javascript? I'm thinking of a button with click event to make the CSS beleve the device with is max 480px width.
I will be using jQuery for it if it's possible to emulate media queries.