Hi! I'm also a newbie and had similar problems with centering. I received great feedback on it: you can use
display: grid;
place-items: center;
min-height: 100vh;
as well. Congrats on completing the challenge!!
Marked as helpful
What are you most proud of, and what would you do differently next time?
I am happy that I was able to use the flex-box principle to carefully arrange and position the elements accurately, next time I would like to use grid to get the same result.
What challenges did you encounter, and how did you overcome them?
Centering a div is common problem but for this project I was able to center the div using the flex-box principle
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