Submitted over 1 year agoA solution to the Product preview card component challenge
Product preview card using CSS flex and grid
accessibility, lighthouse
@oppahero

Solution retrospective
What are you most proud of, and what would you do differently next time?
Instead of using the media query to change the columns of the grid template, I want it to be a dynamic grid.
What challenges did you encounter, and how did you overcome them?Initially I made a dynamic grid assigning it to the card grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) and it worked well
However, when I set max-width max-width: 600px; to the card it stopped working correctly
- Html semantic
- Grid
How can I make a dynamic grid without using media queries grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) , but make the container have a maximum width
Code
Loading...
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on María López's solution.
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