Skip to content

Instantly share code, notes, and snippets.

@adamprocter
Created December 12, 2012 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adamprocter/4267887 to your computer and use it in GitHub Desktop.
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
<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>
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