JSFiddle - React, Tailwind, and code Playground
HTML
<style>
.thumbnail {
display: block;
padding: 4px;
line-height: 1;
border: 1px solid #ddd;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
-webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075);
-moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075);
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075);
}
.thumbnail > img {
display: block;
max-width: 100%;
margin-left: auto;
margin-right: auto;
}
.thumbnail .caption {
padding: 9px;
}
.span2 {
width: 220px;
}
.thumbnail .caption {
padding: 9px;
}
</style>
<div class="box_line" style="float: left; border: 1px solid red;">
<div class="thumbnail span2" style="margin-bottom: 15px;">
<img src="http://placehold.it/260x180" width="135" alt=""/>
<div class="caption">
<h4>Title 1</h4>
<p>asgasg</p>
</div>
</div>
<div class="thumbnail span2" style="margin-bottom: 15px;">
<img src="http://placehold.it/260x180" width="135" alt=""/>
<div class="caption">
<h4>Title 1</h4>
<p>asgasg asgasg asgasg asgasg asgasg asgasg asgasg asgasg asgasg asgasg asgasgasgasgasgasg asgasgasgasg asgasgasgasgasgasgasgasg asgasg</p>
</div>
</div>
<div class="thumbnail span2" style="margin-bottom: 15px;">
<img src="http://placehold.it/260x180" width="135" alt=""/>
<div class="caption">
<h4>Title 1</h4>
<p>asgasg asgasg asgasg asgasg asgasg asgasg asgasg asgasg</p>
</div>
</div>
</div>
JavaScript
function equalHeight(group) {
tallest = 0;
group.each(function() {
thisHeight = $(this).height();
if(thisHeight > tallest) {
tallest = thisHeight;
}
});
group.each(function() { $(this).height(tallest); });
}
$(document).ready(function() {
equalHeight($(".thumbnail"));
});