JSFiddle - React, Tailwind, and code Playground
by NGLN
HTML
<div id="tiles">
<div class="tile">
<span class="photo">
<a href=""><img src="http://lorempixum.com/170/110/city" alt="" /><ins></ins></a>
</span>
<p class="location">Houston</p>
<p class="taxonomy">T6 | Conduit | Infrastructure</p>
</div>
<div class="tile">
<span class="photo">
<a href=""><img src="http://lorempixum.com/110/140/city" alt="" /><ins></ins></a>
</span>
<p class="location">Houston</p>
<p class="taxonomy">T6 | Conduit | Infrastructure</p>
</div>
<div class="tile">
<span class="photo">
<a href=""><img src="http://lorempixum.com/150/100/city" alt="" /><ins></ins></a>
</span>
<p class="location">Florence</p>
<p class="taxonomy">CSD | Detail | Residential, retail, commercial, CMC building, CMC</p>
</div>
<div class="tile">
<span class="photo">
<a href=""><img src="http://lorempixum.com/60/140/city" alt="" /><ins></ins></a>
</span>
<p class="location">Seattle</p>
<p class="taxonomy">T6 | Conduit | Infrastructure</p>
</div>
</div>
CSS
#tiles {
display: inline-block;
background-color: #444;
padding: 20px 0 0 20px;
}
.tile {
float: left;
width: 176px;
height: 206px;
margin: 0 20px 20px 0;
font-family: "arial";
color: #fff;
}
.photo {
display: block;
width: 176px;
height: 158px;
text-align: center;
line-height: 158px;
margin-bottom: 10px;
}
a {
display: inline-block;
position: relative;
line-height: 0;
}
img {
border: none;
vertical-align: middle;
}
ins {
background: url('http://dummyimage.com/20/AF78C0/FFF&text=T') no-repeat 0 0;
position: absolute;
left: 0;
top: 0;
width: 20px;
height: 20px;
}
.location {
font-weight: 700;
}
.taxonomy {
line-height: 10px;
font-size: 10px;
text-transform: uppercase;
height: 20px;
overflow: hidden;
}