Skip to content

Instantly share code, notes, and snippets.

@mhairston
Last active November 18, 2015 21:32
Show Gist options
  • Save mhairston/59e1b868f698abca7e62 to your computer and use it in GitHub Desktop.
Save mhairston/59e1b868f698abca7e62 to your computer and use it in GitHub Desktop.
Better Center Vertical
.u-center-vertical-flex {
display: flex;
align-items: center;
}
/* to include IE10: */
.u-center-vertical-flex {
display: -ms-flex;
display: flex;
-ms-flex-align: center;
align-items: center;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment