Responsive product preview card component main using CSS flex & grid
Design comparison
Solution retrospective
The full responsive and the similarity with the design
What challenges did you encounter, and how did you overcome them?The full responsive design. I use a lot vh and vw.
What specific areas of your project would you like help with?I'm using a lot vh and vw, now I'm doubting if this is a good practice. I'm using it because of the responsive design, if I use pixels, the looking of in different viewports it's not good.
Any comments are welcome.
Community feedback
- @danielmrz-devPosted 4 months ago
Hey there! šš½āāļø
Congrats on finishing the challenge! ā
Your project looks awesome!
Here's a tip that might interest you:
š When you have different versions of the same image, consider using the
<picture>
tag.This will help ensure the correct image loads on the user's device, saving bandwidth and boosting performance.
Example:
<picture> <source media="(min-width: 768px)" srcset="{desktop image path here}"> <img src="{mobile image path here}" alt="{alternative text here}"> </picture>
Hope you find this useful!
Great job overall!
Marked as helpful1
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