Himas Rafeek
Posted on: 2 years ago
CSS

CSS: Media Query

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


                                          body {
    background-color: lightblue;
}
 @media screen and (min-width: 480px) {
    body {
        background-color: lightgreen;
    }
}