Skip to content

Instantly share code, notes, and snippets.

@Dammmien
Created February 25, 2016 18:07
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 Dammmien/52fb521d543cbe828c64 to your computer and use it in GitHub Desktop.
Save Dammmien/52fb521d543cbe828c64 to your computer and use it in GitHub Desktop.
CSS flexbox
.container{
display: flex;
flex-direction: row | row-reverse | column | column-reverse;
flex-wrap: nowrap | wrap | wrap-reverse;
flex-flow: <‘flex-direction’> || <‘flex-wrap’>;
justify-content: flex-start | flex-end | center | space-between | space-around; // horizontally
align-items: flex-start | flex-end | center | baseline | stretch; // vertical-align
align-content: flex-start | flex-end | center | space-between | space-around | stretch; //multi line repartition
}
.items{
order: <integer>; // change order
flex-grow: <number>; // importance de la largeur
flex-shrink: <number>;
flex-basis: <length> | auto;
flex: none | [ <'flex-grow'> <'flex-shrink'>? || <'flex-basis'> ]
align-self: auto | flex-start | flex-end | center | baseline | stretch;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment