Design comparison
Solution retrospective
I am proud of how easily I completed the project, and it was a lot of fun too!
What challenges did you encounter, and how did you overcome them?I had few challenges, but with a few consultations, I managed to refresh my mind and solve the problem.
What specific areas of your project would you like help with?I would like to know how to vertically center the main content of the page without making many changes.
Community feedback
- @SvitlanaSuslenkovaPosted 3 months ago
body { display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 100vh; } Try this to align(top-bottom) and justify(left-right) your project to the center. It applies to the parent component(body). You can use grid instead of flex too(with some changes). Hope you found this comment helpful :)
Marked as helpful1@hmdev2Posted 3 months ago@SvitlanaSuslenkova Perfect, you solved my problem, thank you very much!!
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