
Solution retrospective
Adding border-radius on a section and images, as well as box-shadow.
What challenges did you encounter, and how did you overcome them?I have been unable to reduce the top margin and centering my card on the page, I had to use margin-left.
What specific areas of your project would you like help with?Can I use "display flex, justify content:Center;" to center my main container. It is not working and I had to use margin-left.
Please log in to post a comment
Log in with GitHubCommunity feedback
- P@danielmrz-dev
Hey @KanjaCode! 🙋🏽♂️
Congrats on completing the challenge! ✅
Your project looks fantastic!
Here's a tip to make it even better:
Using
margin
and/orpadding
isn't always the best way to center an element. Try this method to center an element vertically and horizontally:📌 Apply this CSS to the body (skip position or margins to make it work correctly):
body { min-height: 100vh; display: flex; justify-content: center; align-items: center; }
Hope this helps!
Keep up the great work!
Marked as helpful
Join 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