I am looking to design a responsive image grid similar to the one shown in the image below: https://i.sstatic.net/x4G88.png
How can I utilize bootstrap columns and rows to accomplish this task?
<div class="row">
<div class="col-md-3 sm-12"
<img class="img-thumbnail" scr=".......">
</div>
<div class="col-md-3 sm-12"
<img class="img-thumbnail" scr=".......">
</div>
<div class="col-md-3 sm-12"
<img class="img-thumbnail" scr=".......">
</div>
........
...........
.................
.....................
</div>
I have attempted to place all the columns within a single row so that the column elements wrap themselves, but this is not occurring as expected.
Upon implementing the code provided above, some images appear elongated due to "height: auto," resulting in white space gaps between images from different rows.
As a result, the output looks something like the following:
https://i.sstatic.net/LHvVd.jpg