Design comparison
Solution retrospective
i would be so thankful if someone explains to me how to center elemnts vertically like should i make a margin for the box containing the 3 child boxes, should it be in %, else what better approaches can i adapt
Community feedback
- @cristianccggPosted about 2 months ago
Hi there. Try to understand Flexbox or grid by watching a YouTube video and I am sure you will be able to fix the layout correctly. That way it will be very easy to center are place items where you want them quickly. Good job!
0 - @SvitlanaSuslenkovaPosted about 2 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), don't forget about !!min-height!!. You can use grid instead of flex too.
Please check the path of your stylesheet in your html.
Hope you found this comment helpful :)
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