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 Preview Card Component

Daniel 🛸 44,230

@danielmrz-dev

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


I had some difficulties because I didn't know how to use media queries to make the project responsible, but I'm taking a course where I just had the class about that, so I could apply on this project and it worked.

Community feedback

Maja 120

@majaton44

Posted

Looks great!

Just one tip for projects like this, if you want to center the card in the middle of the screen you can use flex on the body. You need to set the height to 100vh (100% of the viewport height) and center the card.

body { display: flex; min-height: 100vh; align-items: center; justify-content: center; }

Hope that helps, keep up the good work.

Marked as helpful

1

Daniel 🛸 44,230

@danielmrz-dev

Posted

@majaton44

Thank you very much for the tip! Really helpfull! I'm gonna try that on the next projects :)

1

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