Design comparison
SolutionDesign
Solution retrospective
What are you most proud of, and what would you do differently next time?
💢Hi Dear Friends I'm really happy that I completed another nice challenge of Front-end Mentors. I would appreciate any comment about my code. Thanks to Front-end Mentor team 🙏
Community feedback
- @danielmrz-devPosted 3 months ago
Hey there! 🙋🏽♂️
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!
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