Last active
November 18, 2015 06:13
-
-
Save alitahashakir/f2f2def191a9b05ad082 to your computer and use it in GitHub Desktop.
element in center of screen
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
.centered { | |
position: fixed; | |
/* any positioin other than static can be use */ | |
top: 50%; | |
left: 50%; | |
/* bring your own prefixes */ | |
transform: translate(-50%, -50%); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment