Design comparison
SolutionDesign
Solution retrospective
What specific areas of your project would you like help with?
I had trouble with centering. I overcome this using margin-top: 50vh;transform: translateY(-50%); but I'm wondering how to do it cleanly with flexbox.
Community feedback
- @kodan96Posted 6 months ago
hi there! ๐
You can center your content by applying these to your
body
tag:body { min-height: 100vh; display: flex; justify-content: center; align-items: center; }
Hope this helped ๐
Good luck and happy coding! ๐ช
Marked as helpful1@evasa2024Posted 6 months ago@kodan96 Thanks ! I didn't know I had to use min-height: 100vh;
1
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