Skip to content

Instantly share code, notes, and snippets.

@greymechanic
Created April 3, 2015 16:45
Show Gist options
  • Save greymechanic/1fb6ce80a878a5456771 to your computer and use it in GitHub Desktop.
Save greymechanic/1fb6ce80a878a5456771 to your computer and use it in GitHub Desktop.
Easy vertical align mixin
@mixin 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