Skip to content

Instantly share code, notes, and snippets.

@lunaroja
Created March 27, 2015 21:57
Show Gist options
  • Save lunaroja/d4dc03ca8067fcc2be8a to your computer and use it in GitHub Desktop.
Save lunaroja/d4dc03ca8067fcc2be8a to your computer and use it in GitHub Desktop.
Flexbox Properties
// 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