Mobile-first product-preview-card-component in HTML and CSS
Design comparison
Community feedback
- @a1excpunkPosted over 2 years ago
Good job on the desktop version but the mobile version looks a bit off.
- image borders.
- width.
- transition from desktop to mobile.
Good luck and keep coding 🤘🏻
0 - @romila2003Posted over 2 years ago
Hi Adersh,
Congratulations 🎉 on your first challenge. It was a good attempt.
Within your report, there was an accessibility and HTML issue in which you did not include an alternative text in your image element. This is important as it helps screen readers and users understand what the content of the image is, if the image is unavailable. The text does not have to be complicated but descriptive enough for users. e.g.
<img src="images/image-product-mobile.png class="mobile-img" alt="Perfume Image">
. Regarding the responsiveness of your card, it is great that you took a mobile -first approach however when shifting between the mobile screen size to the tablet and desktop, the card does not respond well, where the content in the card becomes too wide. You could reduce yourmax-width
property. Your desktop screen size looks great however the mobile and tablet screen sizes need adjusting.Overall, it was a good first attempt and wish you all the best in your future projects 👍.
Hope this comment and suggestions helps.
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