Last active
January 29, 2016 17:17
-
-
Save marcosfreitas/ca298ae66566b4eca71b to your computer and use it in GitHub Desktop.
[UPDATED] Responsive Images, using img element. -- The First Image are loading wrong.
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>Responsive Image</title> | |
</head> | |
<body> | |
<div class="videos"> | |
<div class="gm-container"> | |
<ul class="videos__content"> | |
<li class="videos__item videos__item--small"> | |
<figure class="clearfix"> | |
<img src="//placehold.it/426x240/e74c3c/fff" alt="default image" srcset="//placehold.it/213x120/2c3e50/fff 370w"> | |
<figcaption class="videos__description"> | |
<p class="videos__title">Mussum ipsum cassilds elephants altis da piulis </p> | |
</figcaption> | |
</figure> | |
</li> | |
<li class="videos__item videos__item--small"> | |
<figure class="clearfix"> | |
<picture> | |
<source media="(min-width:370px)" srcset="//placehold.it/213x120/2c3e50/fff"> | |
<img src="//placehold.it/426x240/2d8bc9/fff" alt="default image"> | |
</picture> | |
<figcaption class="videos__description"> | |
<p class="videos__title">Mussum ipsum cassilds elephants altis da piulis </p> | |
</figcaption> | |
</figure> | |
</li> | |
</ul> | |
</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment