I've got a main header image:
<img class="hero" src="/assets/images/Food-Spread-500x167.jpg" alt="banner image" sizes="(min-width: 992px) 80vw, 100vw"
srcset="/assets/images/Food-Spread-500x167.jpg 500w,
/assets/images/Food-Spread-768x256.jpg 768w,
/assets/images/Food-Spread-992x331.jpg 992w,
/assets/images/Food-Spread-1200x400.jpg 1200w">
The difficulty I'm having is twofold:
Which size should you set as the src fallback? Largest or smallest? IE doesn't support srcset at all, so you'd be left with a tiny image as your header!! Safari (mac) struggles with it too...
Because there no way to say 'n'vw 2x how do you get this to work on iphone? (As it's retina it obviously thinks it's twice as big as it is and pulls a much larger image than required). Is there something that can be done about this??
Thanks in advance...