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

Responsive product page with HTML CSS and Flexbox

@ToprakPehleeone

Desktop design screenshot for the Product preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


What are you most proud of, and what would you do differently next time?

I have used basic media queries and understanding the purpose was satisfiyng.

What challenges did you encounter, and how did you overcome them?

Adjusting line height on and elements did require me to research. I found the solution in a short time. Also aligning svg icon with a text required a research but i've found a way to do it with changing the display properity of icon.

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

I want to write more clean and accessible code. I did my best here but still i am not 100% comfortable. Any suggestions and feedback will be appreciated! Thanks.

Community feedback

@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). You can use grid instead of flex too(with some changes). Hope you found this comment helpful :)

Marked as helpful

0

@ToprakPehleeone

Posted

@SvitlanaSuslenkova Thank you so much for feedback !

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