col-auto
is excellent. It effortlessly arranges items by size in a row, but I need it to strictly limit the number of items in each row to a maximum of 3. Each row should only contain between 1-3 items.
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="62000d0d16111610031222574c504c51">[email protected]</a>/dist/css/bootstrap.min.css" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
<div class="col-sm-12 col-xs-12 col-lg-4 col-md-6 col-xl-4 col-xxl-4 d-flex align-items-stretch">
<div class="card border-primary mb-3 mt-2 bg-transparent text-white_disabled w-100">
<div class="card-header bg-transparent font-weight-500">
Languages
</div>
<div class="card-body">
<div class="row">
<li class="col-auto text-nowrap">Rust</li>
<li class="col-auto text-nowrap">Python</li>
<li class="col-auto text-nowrap">PHP</li>
<li class="col-auto text-nowrap">Java</li>
<li class="col-auto text-nowrap">C</li>
<li class="col-auto text-nowrap">C++</li>
<li class="col-auto text-nowrap">Golang</li>
<li class="col-auto text-nowrap">Kotlin</li>
<li class="col-auto text-nowrap">Javascript</li>
</div>
</div>
</div>
</div>
Current Output
https://i.sstatic.net/tzSL8.png
Expected Output