I asked a similar question that I'll go delete because this one specifically focuses on my true issue: making them the same height.
I have two different rows in bootstrap, one with 3 divs (images) and one with 4 divs (also images). The images are the exact same shape and aspect ratio (rectangular), but I want them to stay the same size. Basically, I want the second row of elements to move closer (maybe by overlapping rows) so that all the elements are the same size as the top row.
<div class="row">
<div class="col-sm-4 portfolio-item dontwantpadding">
<a href="#portfolioModal1" class="portfolio-link" data-toggle="modal">
<div class="caption">
Caption
<div class="caption-content">
<i class="fa fa-3x">Hello</i>
</div>
</div>
<img src="img/portfolio/BLM.png" class="triUp img-responsive" alt="">
</a>
</div>
<!-- +3x in row. . . .--> </div>
<div class="row">
<div class="col-sm-3 portfolio-item dontwantpadding">
<a href="#portfolioModal4" class="portfolio-link" data-toggle="modal">
<div class="caption">
<div class="caption-content">
<i class="fa fa-search-plus fa-3x"></i>
</div>
</div>
<img src="img/portfolio/ALS.jpg" class="triUp img-responsive" alt="">
</a>
</div>
<!-- +3x in row. . . .--> </div>
The images themselves are squares, but they are masked in triangles. I included a picture below.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…