Seeking assistance with achieving uniform height for images while maintaining their aspect ratio using CSS. How can I ensure all my images have the same height and remain responsive?
Below is the code snippet containing the images:
<div class="container container-margin">
<div class="columns">
<div class="column is-one-third">
<div class="card">
<div class="card-image">
<figure class="image">
<img class="bw-filter" src="/images/battleport.png"/>
</figure>
</div>
<div class="card-content remove-padding-left">
<div class="content">
<h6 class="">Battleport</h6>
<p><i>Study</i></p>
<br>
</div>
</div>
</div>
</div>
<div class="column is-one-third">
<div class="card">
<div class="card-image">
<figure class="image">
<img class="bw-filter" src="/images/crmfabriek.png"/>
</figure>
</div>
<div class="card-content remove-padding-left">
<div class="content>
<h6 class="">CRM Fabriek</h6>
<p><i>Business</i></p>
<br>
</div>
</div>
</div>
</div>
<div class="column is-one-thrid">
</div>
</div>
In addition to the code, I have reviewed the following resources:
- How to keep responsive images same height?
- How can I make all images of different height and width the same via CSS?
Unfortunately, the solutions provided in these resources do not fit my requirements. Any help would be greatly appreciated.