Created
March 30, 2025 16:55
-
-
Save henshaw/f92eeb971e5386a12d0119cf77843673 to your computer and use it in GitHub Desktop.
Perfect Palette Design using the image srcset property
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<picture> | |
<source media="(max-width: 39rem)" srcset="interior-paint-consulting-mobile.webp" width="1200" height="1196"> | |
<source media="(min-width: 40rem)" srcset="interior-paint-consulting-desktop.webp" width="1600" height="872"> | |
<img src="interior-paint-consulting-desktop.webp" loading="lazy" alt="Interior paint swatches with a bed, rug, and pillow" width="1600" height="872"> | |
</picture> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Referenced in the article: Why you should do more than resizing images with the srcset property