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

Product preview card component using flex and CSS Grid 😉

@rodrigoandregg

Desktop design screenshot for the Product preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Community feedback

Lucas 👾 104,420

@correlucas

Posted

👾 Hello Rodrigo, congratulations for your solution!

You've done a pretty good work in this solution, everything is fine.

The only detail to fix, is that the component is cropping due the overflow: hidden; if you look in the mobile version when the screen scales until 280px the text information start to hide, pay attention to the discount price for example, it disappears.

.flex {
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow: hidden;
}

You can fix that deleting the overflow and applying a media query to change the flex-flow column after 300px.

Hope it helps, happy coding!

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