I'm currently working on setting up my flexbox layout to display 3 columns on larger screens and 2 columns on smaller mobile screens (refer to images 1 and 2 below). You can check out my JS Fiddle and code snippets:
https://jsfiddle.net/kwxj83v6/6/
Everything is looking good on large screens, but I'm encountering some rendering issues on smaller screens.
<div class="row">
<div class="card col-lg-4 col-xs-6">
<img class="card-img-top" src="..." />
<div class="card-body">
<h6 class="card-title">Semi Truck</h6>
</div>
</div>
<div class="card col-lg-4 col-xs-6">
<img class="card-img-top" src="..." />
<div class="card-body">
<h6 class="card-title">Box Truck</h6>https://jsfiddle.net/kwxj83v6/6/
</div>
</div>
<div class="card col-lg-4 col-xs-6">
<img class="card-img-top" src="..." />
<div class="card-body">
<h6 class="card-title">Dump Truck</h6>
</div>
</div>
<div class="card col-lg-4 col-xs-6">
<img class="card-img-top" src="..." />
<div class="card-body">
<h6 class="card-title">Tow Truck</h6>
</div>
</div>
<div class="card col-lg-4 col-xs-6">
<img class="card-img-top" src="..." />
<div class="card-body">
<h6 class="card-title">Tank Truck</h6>
</div>
</div>
<div class="card col-lg-4 col-xs-6">
<img class="card-img-top" src="..." />
<div class="card-body">
<h6 class="card-title">Pickup Truck</h6>
</div>
</div>
</div>
Thank you!
https://i.sstatic.net/sGSBL.png https://i.sstatic.net/WajR1.png