Design comparison
SolutionDesign
Solution retrospective
I found it difficult to vertically center everything. I used flexbox to horizontally align, but I ended up just using margin-top to push it down. I'm not sure if there's a better way to do it.
Community feedback
- @jhellardPosted over 2 years ago
All you'd need to do to center it here is set your min-height to 100vh, take out your padding and un-comment your align-items on the container class.
Looking good on desktop, make sure to account for the mobile view however!
Marked as helpful1
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