Skip to content

Instantly share code, notes, and snippets.

Created January 15, 2014 18:19
What would you like to do?
vertical align anything
%vertical-align {
position: relative;
top: 50%;
-webkit-transform: translateY(-50%);
-ms-transform: translateY(-50%);
transform: translateY(-50%);
.element p {
@extend %vertical-align;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment