You wrote a simple webpage.
There ain't no much content on it.
Iong enough to scroll on your phone,
but not enough to fill your computer screen.
You'd like to center those content.
So you came up with this:
html {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100%;
}
Good, now it's center-ed on your computer, in both directions.
However, when you view that page on your phone again...
The top of your content is cut off!
Instead of...
html {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100%;
}
Try this...
html {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
min-height: 100%;
}