JSFiddle - React, Tailwind, and code Playground
by Jack
HTML
<div class="hcr">
<ul>
<cfoutput query="querylist">
<li>
<span class="wrap">
<a href="some.html"><img src="http://lorempixel.com/80/80/" class="image"></a>
</span>
<span class="wrap2">
<a href="some.html">#text1#</a>
<div>#text2#</div>
<div>#text3#</div>
</span>
</li>
<li>
<span class="wrap">
<a href="some.html"><img src="http://lorempixel.com/80/80/" class="image"></a>
</span>
<span class="wrap2">
<a href="some.html">#text1#</a>
<div>#text2#</div>
<div>#text3#</div>
</span>
</li>
</cfoutput>
</ul>
</div>
CSS
.hcr ul {
padding: 8px 5px;
margin: 0;
width: 530px;
}
.hcr li {
margin: 0;
padding: 0;
float: left;
width: 240px;
padding: 10px;
overflow: hidden;
zoom: 1;
}
.hcr .wrap {
width: 100px;
height: 100px;
display: table-cell;
text-align: center;
vertical-align: middle;
border: 1px solid #ddd
}
.hcr .wrap2 {
width: 100px;
height: 100px;
display: table-cell;
}
.hcr img {
display: inline;
margin-right: 10px;
}
.hcr .image {
width: auto;
height: auto;
max-width: 100px;
max-height: 100px;
vertical-align: middle;
}