Skip to content

Instantly share code, notes, and snippets.

@roybarber
Created January 13, 2014 19:15
Show Gist options
  • Save roybarber/8406237 to your computer and use it in GitHub Desktop.
Save roybarber/8406237 to your computer and use it in GitHub Desktop.
Vertical Align Anything
@mixin vertical-align {position: relative;top: 50%;-webkit-transform: translateY(-50%);-moz-transform: translateY(-50%);-ms-transform: translateY(-50%);transform: translateY(-50%);}
.element {@include vertical-align;}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment