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="" />
                <span class="badge"></span>
            </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="" />
                <span class="badge"></span>
            </a>
        </span>
        <p class="location">New York</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="" />
                <span class="badge"></span>
            </a>
        </span>
        <p class="location">Boston</p>
        <p class="taxonomy">T6 | Conduit | Infrastructure</p>        
    </div>
    <div class="tile">
        <span class="photo">
            <a href="">
                <img src="http://lorempixum.com/60/140/city" alt="" />
                <span class="badge"></span>
            </a>
        </span>
        <p class="location">Seattle</p>
        <p class="taxonomy">T6 | Conduit | Infrastructure</p>        
    </div>
</div>

CSS

body {
    font-family: "arial";
}
#tiles {
    display: inline-block; 
    background: #111;
    padding: 20px 0 0 20px;
}    
.tile {
    background: #333;
    float: left;
    width: 176px;
    height: 206px;
    margin: 0 20px 20px 0;
    color: #fff;
 }
.photo {
    background: #555;
    display: block;
    width: 176px;
    height: 158px;
    text-align: center;
    line-height: 158px;
    margin-bottom: 10px;
}
a {
    background: #888;
    display: inline-block;
    position: relative;
    /* line-height: 1px; */
}
img {
    border: none;
    vertical-align: middle;
}
.badge {
    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: 18px;
    overflow: hidden;
}