Design comparison
SolutionDesign
Solution retrospective
I am finding difficulty regarding the setting of image according to media query. Its running in my browser but when i am trying to run through the repository it is showing the value of alt attribute of image tag instead of image
Community feedback
- @cgrkzlknPosted about 2 years ago
Great job! I see the issue you mentioned, it is because
src
attributes in yourimg
elements.Update them as follows:
src="/images/image-product-desktop.jpg"
tosrc="./images/image-product-desktop.jpg"
src="/images/image-product-mobile.jpg"
tosrc="./images/image-product-mobile.jpg"
Marked as helpful0@akshaykumarmondalPosted about 2 years ago@cgrkzlkn It's working. Thanks a lot sir. Kudos to you.
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