Created
July 26, 2014 17:16
-
-
Save snowman-repos/d908173621e2bc14f668 to your computer and use it in GitHub Desktop.
Vertically Align Anything Mixin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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