Skip to content

Instantly share code, notes, and snippets.

@aFarkas
Last active Aug 29, 2015
Embed
What would you like to do?
<picture>
<source media="(max-width: 500px)" srcset="cat-vertical.jpg">
<img src="cat-horizontal.jpg" alt="cat">
</picture>
<!-- or if you want to have a special universal fallback for not supporting browsers use -->
<picture>
<source media="(max-width: 500px)" srcset="cat-vertical.jpg">
<source srcset="cat-horizontal.jpg">
<img src="cat.jpg" alt="cat">
</picture>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment