Skip to content

Instantly share code, notes, and snippets.

@snowman-repos
Created July 26, 2014 17:16
Show Gist options
  • Save snowman-repos/d908173621e2bc14f668 to your computer and use it in GitHub Desktop.
Save snowman-repos/d908173621e2bc14f668 to your computer and use it in GitHub Desktop.
Vertically Align Anything Mixin
// Remember to set transform-style preserve-3d on
// the parent element of any that uses this mixin
vertical-align
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