Last active
October 15, 2015 02:47
-
-
Save mike-engel/e63653b113cb59d95df2 to your computer and use it in GitHub Desktop.
Simple srcset & sizes
This file contains 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
<img src="fallback.jpg" | |
srcset="small.jpg 320w, | |
medium.jpg 768w, | |
large.jpg 1024w, | |
superHuge.jpg 5000w" | |
sizes="(min-width: 1024px) 50vw, 100vw"> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment