Design comparison
SolutionDesign
Solution retrospective
in my body I initially had set a max-height:1400px. I then decided to try height:max-content and suddenly my content wasn't in the center of the page anymore, it was stuck at the top, as if justify-content:center wasn't even written. Anyone know the reason?
Community feedback
- @0xabdulkhaliqPosted over 1 year ago
Hello there 👋. Congratulations on successfully completing the challenge! 🎉
- I have other recommendations regarding your code that I believe will be of great interest to you.
CSS 🎨:
- Looks like you already centered the component. But the issue is
body
lacks properheight
.
- Providing
max-content
isn't the right way to center the component, Just quickly fix this by adding
body { min-height: 100vh; }
.
I hope you find this helpful 😄 Above all, the solution you submitted is great !
Happy coding!
Marked as helpful0
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