Vertically centre content with flexbox

This commit is contained in:
Caesar Schinas 2016-12-30 12:37:49 -03:00
parent 2ea159ae08
commit a6323c672b

View file

@ -1,6 +1,11 @@
html { html {
background: #eee; background: #eee;
font-family: "Gentium Plus", "Source Sans Pro", sans-serif; font-family: "Gentium Plus", "Source Sans Pro", sans-serif;
min-height: 80%;
display: flex;
flex-flow: column;
align-items: center;
justify-content: center;
} }
body { body {
max-width: 30em; max-width: 30em;