Submitted about 2 years ago
product preview card using html and css
@frankbush-cloud
Design comparison
SolutionDesign
Solution retrospective
1.I need help on what elements of the project to add to the media query. 2.I need education on how to make my product image to have the same height with my card component. All feed back is highly appreciated
Community feedback
- @hyrongennikePosted about 2 years ago
Hi @frankbush-cloud,
Congrats on completing the challenge
On the body rule remove the
max-width: 1440px
and remove theheight: 100vh
. Add amin-height: 100vh
.for mobile you can add the following media query.
@media (max-width: 640px) { .container { display: block; } .product-img { border-radius: 0; width: 100%; height: 300px; object-fit: cover; } }
Hope this is helpful.
0
Please log in to post a comment
Log in with GitHubJoin 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