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 using grid and relatives units

@Lescano713

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'm proud of how I implemented CSS Grid properties to achieve the solution.

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

I tried to avoid using media queries, so I used CSS Grid, but I encountered problems when the screen size was reduced. The content transformed into columns, which was fine, but there was no space between the content and the body.

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

I would like to get feedback on how I can create a responsive page using only CSS Grid without media queries

Community feedback

@Ibtehaj-Ali-1

Posted

Everything is looking great. Just increase the spacing between the Original and Discount prices and increase the margin-top and margin-bottom to the price-product.

Marked as helpful

0
P
Sam Hooker 410

@35degrees

Posted

hi, I love grid too! You have the grid properties down and I love that you used 'minmax' to adjust the widths. I'm not sure there's a way to change the number of columns from two to one without a media query or at least a container query. Media queries are pretty easy to implement and I think they are valuable to use, and they work well with grid. Love your work!

Marked as 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