-
-
Save akrug23/c75dce95e4b1e591bb59ad755c50574f to your computer and use it in GitHub Desktop.
Vertical Alignment Center fuild using transform to center text
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
.container { | |
position: relative; | |
min-height: 100vh; | |
} | |
.vertical-center { | |
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