A mobile device has a screen width of 320px then the viewport width of the device will be set toImmersive Reader (1 Point) 300px 320px 480px 980px code example
Example 1: minimum width of different devices in html
body {
background: white;
}
@media screen and (min-width: 980px) {
body {
background: red;
}
}
@media screen and (max-width: 979px) {
body {
background: blue;
}
}
@media screen and (max-width: 500px) {
body {
background: green;
}
}
Example 2: minimum width of different devices in html
<meta name="viewport" content="width=device-width,initial-scale=1">