Upon upgrading from Bootstrap 4.4 to 4.5, I noticed a change in the responsiveness of cards within columns on my website. Previously, these cards would adjust accordingly when the screen size was smaller, but now they seem to overlap each other.
This issue appears to be linked to a CSS modification in Bootstrap 4.5 where the minimum width for columns defaults to 0. Read more here
You can see this effect in action by toggling between the CSS settings for Bootstrap 4.4 (responsive) and 4.5 (stacked) using this example: View the example here
I'm curious to know if anyone else has encountered this issue and whether it is an intentional change or a regression with Bootstrap 4.5?
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.5.0/css/bootstrap.min.css" rel="stylesheet"/>
<div class="container">
<div class="row mt-5">
<div class="col">
<div class="card" style="width: 18rem;">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
</div>
</div>
<div class="col">
<div class="card" style="width: 18rem;">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
</div>
</div>
<div class="col">
<div class="card" style="width: 18rem;">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
</div>
</div>
</div>
</div>