I have a section with 6 images that I want to display in one row with 6 columns on desktop, and then in two rows with 3 columns each on mobile.
While I have achieved the desired layout on desktop, the images stack on top of each other in a single column on mobile. I aim for them to be displayed in two rows with three columns each.
Below is the code snippet:
<div class="row">
<div class="col-sm-4 col-lg-2">
<img src="" alt="">
</div>
<div class="col-sm-4 col-lg-2">
<img src="" alt="">
</div>
<div class="col-sm-4 col-lg-2">
<img src="" alt="">
</div>
<div class="col-sm-4 col-lg-2">
<img src="" alt="">
</div>
<div class="col-sm-4 col-lg-2">
<img src="" alt="">
</div>
<div class="col-sm-4 col-lg-2">
<img src="" alt="">
</div>
</div>