feat: better vertical alignment with CSS grid
This commit is contained in:
parent
644fdec96c
commit
e4da6b1795
1 changed files with 4 additions and 5 deletions
|
|
@ -3,13 +3,12 @@ html {
|
|||
color: #444;
|
||||
font-family: "Gentium Basic", serif;
|
||||
font-size: 16px;
|
||||
min-height: 80%;
|
||||
display: flex;
|
||||
flex-flow: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-height: 100vh;
|
||||
display: grid;
|
||||
grid-template-rows: 1fr auto 3fr;
|
||||
}
|
||||
body {
|
||||
grid-row: 2;
|
||||
max-width: 30em;
|
||||
margin: auto;
|
||||
padding: 2em;
|
||||
|
|
|
|||
Loading…
Reference in a new issue