When using Bootstrap 5, I encountered an issue where the columns were not sizing evenly in a row. Specifically, on small screens, I wanted them to be exactly size 6. In this case, the columns should have been size 3 for screens larger than md, but they ended up being size 6 regardless of the screen size. Upon removing col-sm-6, the columns behaved as expected. My lack of experience with Bootstrap is evident here, indicating that there may be something I didn't quite grasp.
<link href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="fb9994948f888f899a8bbbced5cbd5c9">[email protected]</a>/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="64060b0b10171016051424514a544a56">[email protected]</a>/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>
<div class="container-fluid mt-5">
<div class="row">
<div class="col-md col-sm-6">
<div class="card text-white bg-success mb-3 mx-auto" style="max-width: 18rem;">
<div class="card-header text-center">1111111</div>
<div class="card-body">
<p class="card-text text-center">1111111</p>
</div>
</div>
</div>
<div class="col-md col-sm-6">
<div class="card text-white bg-success mb-3 mx-auto" style="max-width: 18rem;">
<div class="card-header text-center">222222</div>
<div class="card-body">
<p class="card-text text-center">2222222</p>
</div>
</div>
</div>
<div class="col-md col-sm-6">
<div class="card text-white bg-success mb-3 mx-auto" style="max-width: 18rem;">
<div class="card-header text-center">33333333</div>
<div class="card-body">
<p class="card-text text-center">3333333</p>
</div>
</div>
</div>
<div class="col-md col-sm-6">
<div class="card text-white bg-success mb-3 mx-auto" style="max-width: 18rem;">
<div class="card-header text-center">444444444</div>
<div class="card-body">
<p class="card-text text-center">444444444</p>
</div>
</div>
</div>
</div>
</div>
Result: enter image description here