Skip to content

Instantly share code, notes, and snippets.

@tzi
Last active November 13, 2015 10:39
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 tzi/91d6cf5e78a20e70af97 to your computer and use it in GitHub Desktop.
Save tzi/91d6cf5e78a20e70af97 to your computer and use it in GitHub Desktop.
Flexbox shorthand values

Flexbox shorthand values

keywords

flex: initial => flex: 0 1 auto
flex: none    => flex: 0 0 auto
flex: auto    => flex: 1 1 auto

One value

flex: 0 => flex: 0 1 0
flex: 1 => flex: 1 1 0

Two values

flex: 1 0 => flex: 1 0 0
flex: 1 2 => flex: 1 2 0

flex: 1 auto => flex: 1 1 auto
flex: 1 10px => flex: 1 1 10px
flex: 1 0px  => flex: 1 1 0px
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment