/ Published in: CSS
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; } }