Answers for "base rem as vw"

CSS
0

base rem as vw

html {
  font-size: 16px;
}

@media only screen and (max-width: 600) {
  html {
    font-size: 2.66vw; /* font-size=(16*100)/600; Onde 600 é a largura em px do protótipo*/
  }
  
  .div-exemplo {
    width: 10rem;
    height: 5rem;
  }
}
Posted by: Guest on September-30-2021

Browse Popular Code Answers by Language