Design comparison
SolutionDesign
Community feedback
- @DeanogitPosted 11 months ago
Hi @rahulkumarpahwa,
Great work getting this solution built!
I was taking a look at your code and found something you might be interested in
In order to center the card in the middle of the screen, try including this code in your CSS file.
body{ display: flex; align-items: center; justify-content: center; min-height: 100vh }
Remove the margin top on the
.main
selector for this to work optimally.I hope this helps
Above all, your solution is looking great.
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