I have successfully integrated Bootstrap with a Wordpress Underscores Template.
My goal is to create a horizontally scrollable container filled with images of equal height.
Currently, I am facing an issue where the images within the scrollable container do not have the same height.
/*for example purposes*/
.example{
background:pink;
}
/*underscores style.css*/
img {
height: auto;
max-width: 100%;
}
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<link href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="4c2e2323383f383e2d3c0c79627d627f">[email protected]</a>/dist/css/bootstrap.min.css" rel="stylesheet"/>
<script src="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="a0c2cfcfd4d3d4d2c1d0e0958e918e93">[email protected]</a>/dist/js/bootstrap.bundle.min.js"></script>
<div class="container-fluid overflow-auto border border-dark">
<div class="row flex-row flex-nowrap">
<div class="col-3"><img class="example" width="755" height="523"><br><em>text1</em></div>
<div class="col-3"><img class="example" width="555" height="623"><br><em>text2</em></div>
<div class="col-3"><img class="example" width="455" height="123"><br><em>text3</em></div>
<div class="col-3"><img class="example" width="255" height="323"><br><em>text4</em></div>
<div class="col-3"><img class="example" width="555" height="823"><br><em>text5</em></div>
</div>
</div