Skip to content

Instantly share code, notes, and snippets.

@AllThingsSmitty
Created July 7, 2017 14:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AllThingsSmitty/e42d5dbd4f548b2a4ddbf442627a897f to your computer and use it in GitHub Desktop.
Save AllThingsSmitty/e42d5dbd4f548b2a4ddbf442627a897f to your computer and use it in GitHub Desktop.
Snippet for vertical-/horizontal-aligned container
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