Karin Lee• 50
@kleeblattdev
Submitted
It would be really helpful, if someone could try to explain me how to use the img srcset, because it does not work. I looked it up on mdn and thought that I build it like the example...
@maxibrain4
@kleeblattdev
Submitted
It would be really helpful, if someone could try to explain me how to use the img srcset, because it does not work. I looked it up on mdn and thought that I build it like the example...
@maxibrain4
Posted
use this example you should get it from there (insert your image url) <picture>
<source media="max-width: 600px" srcset="/images/image-header-mobile.jpg" /> <source media="min-width: 600px" srcset="/images/image-header-desktop.jpg" /> <img src="/images/image-header-mobile.jpg" class="pix" alt="" /> </picture>