Skip to content

Instantly share code, notes, and snippets.

@abass
Last active January 4, 2016 02:19
Show Gist options
  • Save abass/8554135 to your computer and use it in GitHub Desktop.
Save abass/8554135 to your computer and use it in GitHub Desktop.
.element {
position: relative;
top: 50%;
-webkit-transform: translateY(-50%);
-moz-transform: translateY(-50%);
-o-transform: translateY(-50%);
transform: translateY(-50%);
}
.element {
position: relative;
top: 50%;
transform: translateY(-50%);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment