@super-simon
Posted
Hello. I recommend using flex for vertical centering. For example:
body {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}
Don't forget to set min-height because, without this, the height of the body will not stretch to the entire screen.
Marked as helpful