Skip to content

Instantly share code, notes, and snippets.

@alistairholt
Created March 22, 2013 11:21
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 alistairholt/5220573 to your computer and use it in GitHub Desktop.
Save alistairholt/5220573 to your computer and use it in GitHub Desktop.
An example of CSS Flexible Box in early 2013
#foo {
display: -webkit-box;
display: -moz-box;
display: -ms-box;
display: -webkit-flex;
display: box;
display: flex;
-webkit-box-orient: vertical;
-moz-box-orient: vertical;
-o-box-orient: vertical;
-ms-box-orient: vertical;
-webkit-flex-direction: column;
flex-direction: column;
-webkit-box-pack: center;
-moz-box-pack: center;
-o-box-pack: center;
-ms-box-pack: center;
-webkit-justify-content: center;
justify-content: center;
-webkit-box-align: center;
-moz-box-align: center;
-o-box-align: center;
-ms-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