bootstrap + django, wrapping cards

后端 未结 1 1714
难免孤独
难免孤独 2020-12-22 00:51

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

相关标签:
1条回答
  • 2020-12-22 01:46

    Just use the spacing utils. For example:

    <div class="col-4 py-3"> 
      <div class="card" style="width: 18rem;">
      ...
      </div>
    </div>
    
    0 讨论(0)
提交回复
热议问题