Attempting to create something simple, but currently unsure how to proceed. A few months ago, I had a concept in mind, but unfortunately lost the files and now feeling stuck.
Using Bootstrap to construct a gallery with two different image sizes: 1920x1200 for long images and 1200x1200px for short ones.
Attempting to organize it in a grid layout like:
<div class="row">
<div class="col-md-6">
<img src="yourImg" />
</div>
<div class="col-md-3">
<img src="yourImg" />
</div>
...
</div>
Desiring the final result to resemble the preview image here: https://i.sstatic.net/qFFpk.jpg
Additionally, each image should be centered within its respective column.
Experimented with using JavaScript to match heights, which worked well, but struggled with keeping the image inside the parent div due to JS not detecting div size. Background-image option was considered, but faced similar issues.
Seeking suggestions on how to successfully implement this design. Looking forward to re-building it effectively!
Appreciate any assistance provided! Thank you!