Skip to content

Instantly share code, notes, and snippets.

@lionhylra
Created September 18, 2013 08:11
Show Gist options
  • Save lionhylra/6606117 to your computer and use it in GitHub Desktop.
Save lionhylra/6606117 to your computer and use it in GitHub Desktop.
vertical align-center: box-align: start|end|center|baseline|stretch;
div{
/*vertical align-center*/
/* Internet Explorer 10 */
display: -ms-flexbox;
-ms-flex-pack: center;
-ms-flex-align: center;
/* Firefox */
display: -moz-box;
-moz-box-pack: center;
-moz-box-align: center;
/* Safari, Opera, and Chrome */
display: -webkit-box;
-webkit-box-pack: center;
-webkit-box-align: center;
/* W3C */
display: box;
box-pack: center;
box-align: center;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment