Responsive product card built with pure css and html
Design comparison
Solution retrospective
Howdy 👋🏻!
I manage to do this challenge with my knowledge of css and htm, i put all my best practices on it, if you can give me a feedback, tips or any recommendation i'll be really happy...
greeting! 🚀🌱
Community feedback
- @VCaramesPosted about 1 year ago
Hey there! 👋 Here are some suggestions to help improve your code:
Unfortunately, there are numerous aspects that require improvement. I recommend reading this excellent article as it demonstrates how to correctly structure your HTML for this particular challenge.
How to plan your HTML (1): Product Preview Card
As for you CSS:
- In modern Web Development, all content is built mobile first, in which you style for small screen first and use
media-query
to style for larger screens. This will ensure that performance and responsiveness are prioritized.
Font-size
should always be inrem
as this helps with accessibility.
- The
height: 100vh;
in thebody
should be amin-height
instead for improved responsiveness.
- There's is no need to apply
border-radius
multiple times, just apply it to the card container along withoverflow: hidden
- Avoid using static properties as they negatively affect responsiveness.
If you have any questions or need further clarification, feel free to reach out to me.
Happy Coding! 👾
Marked as helpful1@alecanonmPosted about 1 year agoThank so much, I’ll be in contact with you later 👾@vcarames
0 - In modern Web Development, all content is built mobile first, in which you style for small screen first and use
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