Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

three column component rsponsive

ArijTrad 50

@ArijTrad

Desktop design screenshot for the 3-column preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


What specific areas of your project would you like help with?

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

@cristianccgg

Posted

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

@SvitlanaSuslenkova

Posted

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 GitHub
Discord logo

Join 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