-
-
Save aFarkas/dd0f845786efd795cd66 to your computer and use it in GitHub Desktop.
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
<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