Design comparison
Community feedback
- @RatifiedPosted over 1 year ago
Hello @AndreasBinawan
Very clean and readable code, keep up
However, you forgot to center your body vertically. Now add this to your body:
align-items: center;
and see the magic. Your body should look like this once you've added:body{ text-size-adjust: none; --webkit-text-size-adjust: none; background-color: var(--light-gray); font-size: 15px; display: grid; min-height: 100%; justify-content: center; align-items: center; }
I'd also advise using
min-height: 100vh
instead ofmin-height:100%
.min-height: 100%
would make the element take up 100% of its parent container's height, which might not necessarily be the full height of the viewport.0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord