Created
February 11, 2018 16:49
-
-
Save William-Hill/3cd51ed9879dbc50012f13823ab40f6a to your computer and use it in GitHub Desktop.
Responsively center text horizontally and vertically
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
/* source: https://stackoverflow.com/a/45275695/2154867 */ | |
#text_container { | |
display: flex; | |
justify-content: center; | |
align-items: center; | |
width: 100%; | |
height: 100vh; } | |
#text_container p { | |
margin: 0; | |
color: white; | |
font-size: 4rem; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment