Skip to content Skip to sidebar Skip to footer

Bootstrap + Django, Wrapping Cards

I have a quick question. I am going to loop through DB records and print one card for each record. The problem is, if I can't set a new row for each, I end up with this horrible sq

Solution 1:

Just use the spacing utils. For example:

<div class="col-4 py-3"> 
  <div class="card" style="width: 18rem;">
  ...
  </div>
</div>

Post a Comment for "Bootstrap + Django, Wrapping Cards"