Skip to content

Instantly share code, notes, and snippets.

@goiblas
Created February 6, 2021 11:29
Show Gist options
  • Save goiblas/95cf1b99ed42e0310b48be54f1a23447 to your computer and use it in GitHub Desktop.
Save goiblas/95cf1b99ed42e0310b48be54f1a23447 to your computer and use it in GitHub Desktop.
Ejemplo columnas con multiples media queries
.grid {
display: grid;
gap: 20px;
width: 90%;
margin: 0 auto;
}
@media(min-width: 1100px) {
.grid {
grid-template-columns: 1fr 1fr;
}
.grid :first-child {
grid-column-end: span 2;
}
}
@media(min-width: 780px) and (max-width: 800px) {
.grid {
grid-template-columns: 1fr 1fr;
}
.grid :first-child {
grid-column-end: span 2;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment