Design comparison
Community feedback
- @amina-refikPosted 8 months ago
Hi Gokulnathan,
Great work on your project!
I wanted to offer a suggestion regarding vertical centering of elements. There are several methods you can employ. For your case, one of the simplest ways is to use flexbox. By adding display: flex; to the parent element and adjusting the margins of the child element to auto:
body { display: flex; } .container { margin: auto; /*removed 6rem*/ }
However, if you're interested in exploring other methods, : I recommend checking out this resource for more information.
Keep up the great work!
1@Gokulnathan8Posted 8 months ago@amina-refik Hi,
Thank you so much for your suggestion and for taking the time to offer your suggestion!
I appreciate you sharing the code snippet and the resource for further exploration. I'll definitely give it a try and update it in the repo.
Thanks again for your support and encouragement!
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