Skip to content

Instantly share code, notes, and snippets.

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 joe-dempsey/8a23c8bc7776c919867adab416f739a3 to your computer and use it in GitHub Desktop.
Save joe-dempsey/8a23c8bc7776c919867adab416f739a3 to your computer and use it in GitHub Desktop.
Center vertical align CSS
/* ADD CLASS .flexbox-container TO PARENT - JOB DONE */
.flexbox-container {
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
-ms-flex-align: center;
-webkit-align-items: center;
-webkit-box-align: center;
align-items: center;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment