Created
June 12, 2014 15:01
-
-
Save pixelchar/2a02f221467074df5387 to your computer and use it in GitHub Desktop.
Centering mixin from Chris Coyier (as seen here: http://codepen.io/chriscoyier/blog/some-mini-sass-mixins-i-like)
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
@mixin centerer { | |
position: absolute; | |
top: 50%; | |
left: 50%; | |
transform: translate(-50%, -50%); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment