“CSS para maior tamanho de tela” Respostas de código

Como mudar o estilo com base no tamanho da tela

.adjust-me-based-on-size{
  margin-left: 15%;
  margin-right: 15%;
}
@media only screen and (min-width: 800) and (max-width: 1200) {
  .adjust-me-based-on-size {

    margin-left: 10%;
    margin-right: 10%;
  }
}
@media only screen and (max-width: 800px) {
  .adjust-me-based-on-size {
    margin-left: 5%;
    margin-right: 0%;
  }
}
 Run code snippet
Wandering Worm

CSS para maior tamanho de tela

@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;
  }
}
Difficult Dingo

Tamanhos de tela para mídia CSS

<meta name="viewport" content="width=device-width, initial-scale=1" />
Good Gerbil

Respostas semelhantes a “CSS para maior tamanho de tela”

Perguntas semelhantes a “CSS para maior tamanho de tela”

Mais respostas relacionadas para “CSS para maior tamanho de tela” em CSS

Procure respostas de código populares por idioma

Procurar outros idiomas de código