Design comparison
Solution retrospective
This exercise was great to learn how to use media queries better, the flex-shrink functionality and different images for different sizes.
What challenges did you encounter, and how did you overcome them?My biggest challenge was around the mobile image. I need to get better at this. I feel like I "hacked" my way through it but I'll go back to it and fix it by Monday.
I also had issues with the padding between elements. This is something that I also had to work around (adding specific padding for each element).
What specific areas of your project would you like help with?If someone could please review the code and offer any suggestions, that would be great, especially around the image structure and spacing.
Community feedback
- @danielmrz-devPosted 7 months ago
Hello @Davisnz!
Your project looks great!
I have a suggestion about your code that might interest you:
š You can use the
<picture>
tag when you have different versions of the same image.Using the
<picture>
tag will help load the correct image to the user's device, saving bandwidth and improving performance.Example:
<picture> <source media="(min-width: 768px)" srcset="{desktop image path here}"> <img src="{mobile image path here}" alt="{alternative text here}"> </picture>
I hope this helps!
Other than that, excellent work!
Marked as helpful1@DavisnzPosted 7 months agoThank you, Daniel! I didn't know that one
I'll research and update the code, thank you šÆ @danielmrz-dev
1
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