Created
July 7, 2017 14:49
-
-
Save AllThingsSmitty/e42d5dbd4f548b2a4ddbf442627a897f to your computer and use it in GitHub Desktop.
Snippet for vertical-/horizontal-aligned container
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
html, body { | |
height: 100%; | |
margin: 0; | |
} | |
body { | |
-webkit-box-align: center; | |
-ms-flex-align: center; | |
align-items: center; | |
display: -webkit-box; | |
display: -ms-flexbox; | |
display: flex; | |
} | |
.container { | |
margin: 0 auto; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment