Bootstrap 4 card-deck with number of columns based on viewport

后端 未结 11 1187
無奈伤痛
無奈伤痛 2020-11-28 06:10

I\'m trying to implement the card-deck feature in bootstrap 4 to make all of my cards the same height.

The examples that bootstrap provides show 4 nice cards, but it

11条回答
  •  情话喂你
    2020-11-28 07:06

    There's simpler solution for that - set fixed height of card elements - header and body. This way, we can set resposive layout with standard boostrap column grid.

    Here is my example: http://codeply.com/go/RHDawRSBol

     
    Card image cap

    1 Card title

    This is a longer card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.

    Last updated 3 mins ago

提交回复
热议问题