Bootstrap 4 card deck table-cell columns responsive based on viewport?

前端 未结 6 1741
予麋鹿
予麋鹿 2021-02-02 16:34

So in Bootstrap v4, I see there\'s a new feature for card decks ( http://v4-alpha.getbootstrap.com/components/card/#decks ) that makes a group of cards, with their height equal

6条回答
  •  不思量自难忘°
    2021-02-02 17:05

    I found a pretty easy workaround using css-grid. You could tweak the 250px to fit your use case.

    .card-deck {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        grid-gap: .5rem;
    }
    

提交回复
热议问题