@amina-refik
Posted
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!
@Gokulnathan8
Posted
@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!