I've been reading different articles on responsive images until I feel like my eyes are about to bleed. One of the articles that seemed less confusing was this one: https://developer.mozilla.org/en-US/...ponsive_images
So I understand the principal, it makes sense to not overload phones with unnecessarily large images, and I think I get the basics of the code. I create and upload my image in 3 different sizes:
http://cismiami.org/img/thankyoukids_480.jpg
http://cismiami.org/img/thankyoukids_768.jpg
http://cismiami.org/img/thankyoukids_1100.jpg
Then I code and upload my test page:
With the result: http://cismiami.org/volunteerthanks2.htmlCode:<picture> <img src="/img/thankyoukids_1100.jpg" alt="Thank you for supporting Communities In Schools of Miami" srcset=" http://cismiami.org/img/thankyoukids_480.jpg 480w, http://cismiami.org/img/thankyoukids_768.jpg 768w, http://cismiami.org/img/thankyoukids_1100.jpg 1100w" sizes="(max-width: 1100px) 100vw, 1100px"> </picture>
But no matter what device or screen size I test this on, I keep getting the large image served to me. I would love any assistance in understanding what I'm doing incorrectly.
Deborah
Bookmarks