Created
February 6, 2021 11:29
-
-
Save goiblas/95cf1b99ed42e0310b48be54f1a23447 to your computer and use it in GitHub Desktop.
Ejemplo columnas con multiples media queries
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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