Created
December 12, 2012 13:56
-
-
Save adamprocter/4267887 to your computer and use it in GitHub Desktop.
A CodePen by Adam Procter. Flexi grid of images - Idea of how to make list of image flex in size
This file contains hidden or 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
<ul class="container"> | |
<li> | |
<img src="http://meanwhile.soton.ac.uk/webproject/img/duck.png" /></li> | |
<li><img src="http://meanwhile.soton.ac.uk/webproject/img/duck.png" /></li> | |
<li><img src="http://meanwhile.soton.ac.uk/webproject/img/duck.png" /></li> | |
<li><img src="http://meanwhile.soton.ac.uk/webproject/img/duck.png" /></li> | |
<li><img src="http://meanwhile.soton.ac.uk/webproject/img/duck.png" /></li> | |
</ul> |
This file contains hidden or 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
ul{ | |
max-width:1080px; | |
} | |
li{ | |
width:20%; | |
float:left; | |
} | |
img{ | |
max-width:100% | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment