Skip to content

Instantly share code, notes, and snippets.

@DavidPeralvarez
Last active November 29, 2018 12:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DavidPeralvarez/139218606e4883bb48f6d528645ca44a to your computer and use it in GitHub Desktop.
Save DavidPeralvarez/139218606e4883bb48f6d528645ca44a to your computer and use it in GitHub Desktop.
Alineación de elementos con CSS Grid
/*
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