Created
February 25, 2016 18:07
-
-
Save Dammmien/52fb521d543cbe828c64 to your computer and use it in GitHub Desktop.
CSS flexbox
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
.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