Created
March 27, 2015 21:57
-
-
Save lunaroja/d4dc03ca8067fcc2be8a to your computer and use it in GitHub Desktop.
Flexbox Properties
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
// https://css-tricks.com/snippets/css/a-guide-to-flexbox/ | |
.parent { | |
display: flex; /* or inline-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; | |
align-items: flex-start | flex-end | center | baseline | stretch; | |
align-content: flex-start | flex-end | center | space-between | space-around | stretch; | |
.child { | |
order: <integer>; | |
flex-grow: <number>; /* default 0 */ | |
flex-shrink: <number>; /* default 1 */ | |
flex-basis: <length> | auto; /* default 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