I have hit a roadblock while working on a project, and I am unable to resolve it :) I am using the Bootstrap grid system and I want to display thumbnails within a content section, with six thumbnails per row. The issue is that while the text below each image varies, I want every thumbnail to have the same height (the highest one) and align the text vertically within the div. Can anyone provide some assistance?
<div class="row">
<div class="col-md-12 col-xs-12" >
<div class="panel panel-default">
<div class="panel-heading clearfix">
<i class="icon-book"></i>
<h3 class="panel-title">Facultati</h3>
</div>
<div id="main-panel" class="panel-body">
<div class="row gallery">
<div class="col-md-2 col-sm-2 col-xs-6">
<a href="faculty-page.html">
<div class="thumbnail">
<img style="height:100px" src="img/faculty.jpg" alt="Cloud Admin" class="img-responsive">
<div class="caption">
<h3 style="text-align:center;font-size:20px">Facultatea de Matematica si Informatica</h3>
</div>
</div>
</a>
</div>
<div class="col-md-2 col-sm-2 col-xs-6">
<a href="faculty-page.html">
<div class="thumbnail" >
<img style="height:100px" src="img/faculty.jpg" alt="Examene" class="img-responsive">
<div class="caption">
<h3 style="text-align:center">Examene</h3>
</div>
</div>
</a>
</div>
<div class="col-md-2 col-sm-2 col-xs-6">
<a href="faculty-page.html">
<div class="thumbnail">
<img style="height:100px" src="img/faculty.jpg" alt="Cloud Admin" class="img-responsive">
<div class="caption">
<h3 style="text-align:center">Lab1.doc</h3>
</div>
</div>
</a>
</div>
<div class="col-md-2 col-sm-2 col-xs-6">
<a href="faculty-page.html">
<div class="thumbnail">
<img style="height:100px" src="img/faculty.jpg" alt="Cloud Admin" class="img-responsive">
<div class="caption">
<h3 style="text-align:center">Facultatea de Geografie</h3>
</div>
</div>
</a>
</div>
</div>
</div>
</div>
</div>
Here's the HTML
.caption{
display:table;
height:auto;}
.caption h3{
display: table-cell;
vertical-align: middle;
text-align: center;
}
and here the CSS (just for this part) Thank you.