Just dipping my toes into the world of CSS, so please be kind ;). Here's a setup I have for a grid:
<div class="row">
<div class="col-lg-2 col-sm-3 col-xs-4">
<a href="#" class="thumbnail">
<img src="http://placehold.it/150x150" class="img-responsive">
</a>
</div>
<div class="col-lg-2 col-sm-3 col-xs-4">
<a href="#" class="thumbnail">
<img src="http://placehold.it/150x150" class="img-responsive">
</a>
</div>
</div>
The issue arises when I replace the placeholder image with an actual one; I want it to fill the space completely regardless of size. Essentially, I'm looking for a way to maintain the 150x150 ratio no matter what. While the width (max-width: 100%) seems to work fine, the height doesn't cooperate. Tinkering with height, width, max-height, etc. hasn't yielded any results.