Answers for "@media and only mobile"

CSS
59

@media for mobile

@media only screen and (max-width: 600px) {
  body {
    background-color: lightblue;
  }
}
Posted by: Guest on December-06-2019
0

Media Query smartphone only

@media all and (max-width: 767px) {
 
}
Posted by: Guest on November-30-2021

Browse Popular Code Answers by Language