That’s because you are creating a card group in each iteration of the loop.
You should move the <div class="card-group" >
div out of the loop.
That’s because you are creating a card group in each iteration of the loop.
You should move the <div class="card-group" >
div out of the loop.