Answers for "css for screen resolution"

CSS
1

how to specify css for smaller screen

@media only screen and (max-width: 991px) and (min-width: 769px){
 /* CSS that should be displayed if width is equal to or less than 991px and larger 
  than 768px goes here */
}

@media only screen and (max-width: 991px){
 /* CSS that should be displayed if width is equal to or less than 991px goes here */
}
Posted by: Guest on January-20-2022
0

css for bigger screen size

@media screen and (min-width: 1400px) {
  .container {
    width: 1370px;
  }
}
@media screen and (min-width: 1600px) {
  .container {
    width: 1570px;
  }
}
@media screen and (min-width: 1900px) {
  .container {
    width: 1870px;
  }
}
Posted by: Guest on January-06-2022
1

screen sizes for css media

<meta name="viewport" content="width=device-width, initial-scale=1" />
Posted by: Guest on February-04-2021

Code answers related to "css for screen resolution"

Browse Popular Code Answers by Language