Answers for "mobile browser width and device display resolution"

14

phone screen size fix html meta

<meta name="viewport" content="width=device-width, initial-scale=1.0">
Posted by: Guest on October-29-2019
0

device-width

body {
  background: white;    
}
 
@media screen and (min-width: 980px) /* Desktop */ {
  body {
    background: red;
  }
}
 
@media screen  and (max-width: 979px) /* Tablet */ {
  body {
    background: blue;
  }
}
 
@media screen and (max-width: 500px) /* Mobile */ {
  body {
    background: green;
  }
}
Posted by: Guest on August-25-2020

Code answers related to "mobile browser width and device display resolution"

Browse Popular Code Answers by Language