Skip to content

Instantly share code, notes, and snippets.

@KacperOlszewski
Created September 15, 2015 17:14
Show Gist options
  • Save KacperOlszewski/ea2dcbe43b812a36fd6b to your computer and use it in GitHub Desktop.
Save KacperOlszewski/ea2dcbe43b812a36fd6b to your computer and use it in GitHub Desktop.
centering with flex
display: -webkit-box;
display: -moz-box;
display: -webkit-flex;
display: flex;
-webkit-flex-direction: row;
flex-direction: row;
-webkit-flex-wrap: wrap;
flex-wrap: wrap;
-webkit-box-pack: center;
-moz-box-pack: center;
-webkit-justify-content: center;
justify-content: center;
-webkit-box-align: center;
-moz-box-align: center;
-webkit-align-items: center;
align-items: center;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment