Answers for "css if mobile"

CSS
51

media query

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

css check if mobile

@media (pointer:none), (pointer:coarse) {
}
Posted by: Guest on September-01-2021

Browse Popular Code Answers by Language