Design comparison
SolutionDesign
Community feedback
- @kodan96Posted 6 months ago
hi there! ๐
You can center your content with Flexbox if you apply these to your
body
tag:body { min-height: 100vh; display: flex; justify-content: center; align-items: center; }
Use
min-height
, otherwise users won't be able to scroll down if your content does't fit into one screen on smaller screen sizes.Hope this helped ๐
Good luck and happy coding!
Marked as helpful0@afolabi-olaPosted 6 months ago@kodan96 Thanks alot I will make sure to do that and also submit my other solutions for other task I have completed on frontend mentors. I really appreciate ๐ your review and suggestions.
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