-
-
Save DavidPeralvarez/139218606e4883bb48f6d528645ca44a to your computer and use it in GitHub Desktop.
Alineación de elementos con CSS Grid
This file contains 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
/* | |
justify: eje horizontal | |
align: eje vertical | |
// Toda la cuadrícula | |
justify-content: start | end | center | stretch | space-around | space-between | space-evenly; | |
align-content: start | end | center | stretch | space-around | space-between | space-evenly; | |
place-content: align-content justify-content; | |
// Grid items en conjunto | |
justify-items: start | end | center | stretch; | |
align-items: start | end | center | stretch; | |
place-items: align-items justify-items; | |
// Grid item individual | |
justify-self: start | end | center | stretch; | |
align-self: start | end | center | stretch; | |
place-self: align-self justify-self; | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment