How can I make a card deck with fixed-width cards?

前端 未结 3 1764
伪装坚强ぢ
伪装坚强ぢ 2021-02-05 15:30

I want to make a responsive card deck using Bootstrap 4 fixed-width cards. Here I have posted the code below, but it\'s not responsive. Why?

3条回答
  •  花落未央
    2021-02-05 16:14

    Deck makes cards equal height.

    Adding a row-deleting deck was correct. Adding col-lg-3 col-md-2 col-sm-12 will give a four-cards desktop, etc. down to one on a phone.

    Set the height using the height of the largest number so an "OK" looks straight.

提交回复
热议问题