Created
November 14, 2014 15:04
-
-
Save mrop/be9374b0605e764dd6e5 to your computer and use it in GitHub Desktop.
html picture tag with Hippo
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
<hst:link hippobean="${imageset.large}" var="large"/> | |
<hst:link hippobean="${imageset.medium}" var="medium"/> | |
<hst:link hippobean="${imageset.small}" var="small"/>/> | |
<picture> | |
<!--[if IE 9]><video style="display: none;"><![endif]--> | |
<source srcset="${large}" media="(min-width: 912px)"> | |
<source srcset="${medium}" media="(min-width: 640px)"> | |
<source srcset="${small}" media="(min-width: 0px)"> | |
<!--[if IE 9]></video><![endif]--> | |
</picture> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment