Design comparison
SolutionDesign
Solution retrospective
What are you most proud of, and what would you do differently next time?
I did this exercise! there are many things
What challenges did you encounter, and how did you overcome them?In the middle of the vertical fold, why is the top and bottom margin: auto not possible? I just gave top margin
Community feedback
- @kodan96Posted 5 months ago
hi there! 👋
Instead of using margins, you can center your content with Flexbox if you apply these to the
body
tag:body { min-height: 100vh; display: flex; justify-content: center; align-items: center; }
Hope this was helpful 🙏
Good luck and happy coding! 🙌
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