Design comparison
SolutionDesign
Solution retrospective
Just want to know tips and tricks for vertically aligning div in the page. Thank you.
Community feedback
- @CyrusKabirPosted over 2 years ago
Hello @pjortega0225, for centering things I highly recommend read this two articles :
Marked as helpful0 - @imadvvPosted over 2 years ago
Greetings JP!! Congratulations on completing this challenge!, maybe the easy way is to use either
flex
orgrid
, for example you can removemargin-top: 150px;
frombody
and display itflex
as flowdisplay: flex; flex-direction: column; min-height: 100vh; align-items: center; }
over all you did will!! Keep up The Good Work
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