Skip to content

Instantly share code, notes, and snippets.

Created May 12, 2013 14:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/5563795 to your computer and use it in GitHub Desktop.
Save anonymous/5563795 to your computer and use it in GitHub Desktop.
Untitled
ul { margin:0;padding:0; }
.list ul{
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: baseline;
}
.list li {
width: 100px;
list-style:none;
background-color: #0a0;
}
.list li img {
display: block;
}
<div class="list">
<ul>
<li><img src="http://dummyimage.com/100x120"> text1 <br> text 1-1 text 1-2 text 1-3
<li><img src="http://dummyimage.com/100x160"> text2
<li><img src="http://dummyimage.com/100x100"> text3
<li><img src="http://dummyimage.com/100x120"> text4
<li><img src="http://dummyimage.com/100x100"> text5
<li><img src="http://dummyimage.com/100x140"> text6
<li><img src="http://dummyimage.com/100x100"> text7
<li><img src="http://dummyimage.com/100x120"> text8
</ul>
</div>
// alert('Hello world!');
{"view":"separate","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment