Design comparison
SolutionDesign
Solution retrospective
What are you most proud of, and what would you do differently next time?
i actually some confusion ,but after this i gained some confidence ,this is just center the div,by using display flex.
What challenges did you encounter, and how did you overcome them?nothing to chanllenge any friim this challenge
What specific areas of your project would you like help with?yes,to center the element from any project
Community feedback
- @kodan96Posted 6 months ago
hi there! ๐
instead of creating a container element and applying
height: 100vh;
to it you can center your content with Flexbox if you apply these to thebody
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