Created
September 12, 2013 10:13
-
-
Save fmsf/6535364 to your computer and use it in GitHub Desktop.
Relative css dead center in less
This file contains 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
.relative-dead-center { | |
position: absolute; | |
top: 50%; | |
margin-left: 50%; | |
> * { | |
margin-top: -50%; | |
margin-left: -50%; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment