Design comparison
Solution retrospective
I tried to use picture element and but it didn't work. How to use it?
Community feedback
- @KevinBlyweertPosted 8 months ago
Great, can hardly tell the difference! For picture element, which you made me discover, you got two elements, source, and image. As I understood, in the field media of source element is an evaluation of what you want to be tested to display either of your images. If it's true, the image you linked into srcset will be displayed, otherwise the src from img element will. I played with media queries instead of picture element, maybe I'll give it a try later.
1@Dev-nbs75Posted 8 months agoThank you @KevinBlyweert for your feedback, I tried using srcset but it wasn't even hyperlinking to the img and i was confused because when the image met certain point i gave it to change it didn't showed up .
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