Last active
December 7, 2015 18:52
-
-
Save xto3na/63f975cc6cd8506e9d3c to your computer and use it in GitHub Desktop.
CENTER ELEMENT - position: absolute;
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
.element { | |
position: absolute; | |
left: 50%; | |
top: 50%; | |
transform: translateX(-50%); | |
transform: translateY(-50%); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment