Design comparison
SolutionDesign
Solution retrospective
I struggle when it comes to centering items vertically. Whenever I add height to a section is misses up the flow of the elements. Can anyone share useful links to help me?
Community feedback
- @JeezyDevPosted about 3 years ago
Use flexbox on the body: display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh;
That should work.
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