Skip to content

Instantly share code, notes, and snippets.

@usirin
Created May 19, 2014 23:49
Show Gist options
  • Save usirin/dba41183b2730e01c7e5 to your computer and use it in GitHub Desktop.
Save usirin/dba41183b2730e01c7e5 to your computer and use it in GitHub Desktop.
.vertical-align {
position: relative;
top: 50%;
-webkit-transform: translateY(-50%);
-ms-transform: translateY(-50%);
transform: translateY(-50%);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment