I am currently exploring ways to make cards within a list group wrap if there is not enough space. For instance, if I have 4 cards in a list group all set to 25% width, how can I ensure that the fifth card appears on the row below?
While researching this issue online, I found some solutions that seem inefficient, such as using a second group list.
<div class="list-group-item active text-light w-25">
<h5 class="mb-1">text</h5>
<p class="mb-1">text</p>
</div>
My expectation is for the cards to wrap once more than 4 are shown, but it should also be able to accommodate up to 8 cards in a single row.