media query css for mobile browser window size code example
Example 1: media query for mobile view css
@media only screen and (max-width: 600px) {
body {
background-color: lightblue;
}
}
Example 2: media query
@media only screen and (max-width: 600px) {}
@media only screen and (min-width: 600px) {}
@media only screen and (min-width: 768px) {}
@media only screen and (min-width: 992px) {}
@media only screen and (min-width: 1200px) {}
Example 3: media query css for all devices
@media (min-width: 600px) and (max-width: 800px) {
}