Skip to content

Instantly share code, notes, and snippets.

@janmarsicek
Last active March 10, 2016 22:55
Show Gist options
  • Save janmarsicek/36073d5b13b76ba3975c to your computer and use it in GitHub Desktop.
Save janmarsicek/36073d5b13b76ba3975c to your computer and use it in GitHub Desktop.
Flexbox Properties
// Flexbox Playground: Visual Guide To Flexbox
// https://scotch.io/demos/visual-guide-to-css3-flexbox-flexbox-playground
// http://www.flexboxdefense.com/
// http://flexboxfroggy.com/
// http://flexboxin5.com/
// Use flexbox while supporting older Internet Explorers
// https://github.com/10up/flexibility/
// Flexbugs
// https://github.com/philipwalton/flexbugs
// https://css-tricks.com/snippets/css/a-guide-to-flexbox/
.container
display: flex
// flex-direction: row | row-reverse | column | column-reverse
flex-direction: row
// flex-wrap: nowrap | wrap | wrap-reverse
flex-wrap: nowrap
// This is a shorthand for flex-direction and flex-wrap
// flex-flow: <‘flex-direction’> || <‘flex-wrap’> (default: row nowrap)
// justify-content: flex-start | flex-end | center | space-between | space-around (main-axis)
justify-content: flex-start
// align-items: flex-start | flex-end | center | baseline | stretch (cross-axis)
align-items: flex-start
// align-content: flex-start | flex-end | center | space-between | space-around | stretch
align-content: flex-start
.child
order: <integer>
// flex-grow: <number>
// flex-shrink: <number>
// flex-basis: <length> | auto
// This is a shorthand for flex-grow, flex-shrink and flex-basis (preferred)
// flex: none | [ <'flex-grow'> <'flex-shrink'>? || <'flex-basis'> ] (default: 0 1 auto)
flex: 0 1 auto
// align-self: auto | flex-start | flex-end | center | baseline | stretch
align-self: auto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment