Having a bit of an issue with my bootstrap cards in a Flask for loop. It's working fine, but every time I pass 3 cards, a new column starts and messes up the layout. Check out this screenshot for an example: https://ibb.co/jTvtSbq
Also, the vertical spacing at the bottom looks a bit off. Here's a snippet of my HTML code:
<div class="col">
<div class="card" id='cardPostPost' style="width: 400px; border-radius: 23px; background-color: rgb(35, 33, 33); color: white; bottom: -22pc; left: -18pc; ">
<h5 class="card-header border-bottom border-light" style="color: white" >Teacher's Homework</h5>
<div class="card-body" style="color: white" >
<h5 class="card-title">Homework</h5>
<p class="card-text">No </p>
<a href="#" class="btn btn-primary">Learn More</a>
</div>
</div>
</div>
<div class="col">
<div class="card" id='cardPostPost' style="width: 400px; border-radius: 23px; background-color: rgb(35, 33, 33); color: white; bottom: -22pc; left: -18pc; ">
<h5 class="card-header border-bottom border-light" style="color: white" >SomeNewTask</h5>
<div class="card-body" style="color: white" >
<h5 class="card-title">Homework</h5>
<p class="card-text">Yes </p>
<a href="#" class="btn btn-primary">Learn More</a>
</div>
</div>
</div>
... (additional card code here)
Can anyone offer a solution to this problem I'm facing?