Design comparison
Community feedback
- @correlucasPosted about 2 years ago
๐พHello John, congratulations for your new solution!
Great solution and great design John, something you can improve is the alignment that's not applied in the best way possible, you've used
margins
andposition relative
/translate
to give the container its alignment, this works but is really tricky to control all the content. My advice for your is to useflexbox
to create this alignment, make this it withmin-height: 100vh
to thebody
to make the body display 100% of the viewport height (this makes the container align to the height size thats now 100% of the screen height) size anddisplay: flex
eflex-direction: column
to align the child element (the container) vertically using the body.โ๏ธ I hope this helps you and happy coding!
Marked as helpful0
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