Answers for "css device sizes"

CSS
1

css different sreen size

/* For Mobile */
@media screen and (max-width: 540px) {
    .view {
        width: 400px;
    }
}

/* For Tablets */
@media screen and (min-width: 540px) and (max-width: 780px) {
    .view {
        width: 600px;
    }
}
Posted by: Guest on August-07-2020
17

css media query responsive sizes

320px
480px
600px
768px
900px
1024px
1200px
Posted by: Guest on July-14-2020
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

Browse Popular Code Answers by Language