Hmm... your solution looks great. Just try giving the body
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
Marked as helpful
@Cooly-o-Cats
Posted
@Adriana2710 What @peperezjprz19 said should fix it, but maybe add
overflow: hidden;
Marked as helpful
Thanks @perezjprz19 and @Cooly-o-Cats!
@Cooly-o-Cats don't use overflow hidden on this! Big accessibility issues from that
And use min-height not height. If you change base text size, zoom or use a mobile device especially in landscape view these things make a big difference. Think what 100vh is on mobile landscape vs portrait for example. Height would limit things to be that tall, min height would let them grow beyond the 100vh if they needed to
Marked as helpful