/ Published in: CSS
![](/img/icon_sav.png?v3)
This is code you put in a CSS file. It queries the size of the screen using the parameters passed in. If its true, it then applies the CSS
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
body { background-color: lightblue; } @media screen and (min-width: 480px) { body { background-color: lightgreen; } }
Comments
![RSS Feed for Comments RSS Icon](/images/rss.png?v3)