I am currently designing a webpage that showcases a row of cards, each featuring an image and a title. At the moment, I am utilizing the Bootstrap grid system to display 4 cards per row on larger screens (col-md-2), but my goal is to modify this layout to show 2 cards per row on smaller screens.
<div class="row">
<div class="col-md-2 col-sm-4 item mt-3">
<div class="card item-card card-block">
<img src="~/img/deprt-8.png" style="max-width: 100%; ">
<h5 class="item-card-title my-2">Internal/Family Medicine </h5>
</div>
</div>
<div class="col-md-2 col-sm-4 item mt-3">
<div class="card item-card card-block">
<img src="~/img/deprt-10.png" style="max-width: 100%; ">
<h5 class="item-card-title my-2">Pulmonology </h5>
</div>
</div>
<div class="col-md-2 col-sm-4 item mt-3">
<div class="card item-card card-block">
<img src="~/img/deprt-11.png" style="max-width: 100%; ">
<h5 class="item-card-title my-2">Gastroenterology</h5>
</div>
</div>
<div class="col-md-2 col-sm-4 item mt-3">
<div class="card item-card card-block">
<img src="~/img/deprt-1.png" style="max-width: 100%; ">
<h5 class="item-card-title my-2">Dentistry</h5>
</div>
</div>
</div>