I've had an issue for the past few weeks on the site im working on. I have a Bootstrap grid with three containers per row, and containing 3 rows in the whole grid. 2 out of 9 of the containers are shorter than the others.
Things I've Tried:
- Creating images that are all the same height
- Forcing same height in css
So far these didn't work... The issue can be seen here: https://pawalter.psu.edu/topics or here: Bootstrap grid navigation
The code for the node (drupal 7 site) containing the Bootstrap grid is this:
<div class="container">
<div class="row">
<div class="col-md-4">
<div class="thumbnail">
<a href="https://pawalter.psu.edu/topics/agriculture">
<img src="<?php $theme_path = drupal_get_path('theme', variable_get('theme_default',NULL));
print $theme_path;
?>/images/Ag.jpg" alt="Agriculture" >
<div class="caption">
<h4>Agriculture</h4>
</div>
</a>
</div>
</div>
<div class="col-md-4">
<div class="thumbnail">
<a href="https://pawalter.psu.edu/topics/bluffmanagement">
<img src="<?php $theme_path = drupal_get_path('theme', variable_get('theme_default',NULL));
print $theme_path;
?>/images/Bluff-mgmt.jpg" alt="Bluff Management" >
<div class="caption">
<h4>Bluff Management</h4>
</div>
</a>
</div>
</div>
<div class="col-md-4">
<div class="thumbnail">
<a href="http://pawalter.psu.edu/topics/invasivespecies">
<img src="<?php $theme_path = drupal_get_path('theme', variable_get('theme_default',NULL));
print $theme_path;
?>/images/Invasives.jpg" alt="Invasive Species" >
<div class="caption">
<h4>Invasive Species</h4>
</div>
</a>
</div>
</div>
</div>
<div class="row">
<div class="col-md-4">
<div class="thumbnail">
<a href="https://pawalter.psu.edu/topics/policyandgovernance">
<img src="<?php $theme_path = drupal_get_path('theme', variable_get('theme_default',NULL));
print $theme_path;
?>/images/Policy.jpg" alt="Policy" >
<div class="caption">
<h4>Policy & Goverance</h4>
</div>
</a>
</div>
</div>
<div class="col-md-4">
<div class="thumbnail">
<a href="https://pawalter.psu.edu/topics/presqueislebay">
<img src="<?php $theme_path = drupal_get_path('theme', variable_get('theme_default',NULL));
print $theme_path;
?>/images/PIB.jpg" alt="Presque Isle Bay" >
<div class="caption">
<h4>Presque Isle Bay</h4>
</div>
</a>
</div>
</div>
<div class="col-md-4">
<div class="thumbnail">
<a href="https://pawalter.psu.edu/topics/reservationandconservation">
<img src="<?php $theme_path = drupal_get_path('theme', variable_get('theme_default',NULL));
print $theme_path;
?>/images/Rest-and-Cons.jpg" alt="Restoration & Conservation" style="">
<div class="caption">
<h4>Restoration & Conservation</h4>
</div>
</a>
</div>
</div>
</div>
<div class="row">
<div class="col-md-4">
<div class="thumbnail">
<a href="https://pawalter.psu.edu/topics/stormwatermanagement">
<img src="<?php $theme_path = drupal_get_path('theme', variable_get('theme_default',NULL));
print $theme_path;
?>/images/Stormwater.jpg" alt="Stormwater Management" >
<div class="caption">
<h4>Stormwater Management</h4>
</div>
</a>
</div>
</div>
<div class="col-md-4">
<div class="thumbnail">
<a href="https://pawalter.psu.edu/topics/water-and-land">
<img src="<?php $theme_path = drupal_get_path('theme', variable_get('theme_default',NULL));
print $theme_path;
?>/images/Water-and-LU.jpg" alt="Water and Land Use Planning" >
<div class="caption">
<h4>Water and Land Use Planning</h4>
</div>
</a>
</div>
</div>
<div class="col-md-4">
<div class="thumbnail">
<a href="https://pawalter.psu.edu/topics/water-quality">
<img src="<?php $theme_path = drupal_get_path('theme', variable_get('theme_default',NULL));
print $theme_path;
?>/images/Water-Quality.jpg" alt="Water Quality" >
<div class="caption">
<h4>Water Quality</h4>
</div>
</a>
</div>
</div>
</div>
</div>