I didn't find card-columns class in bootstrap 5.0, and there is no mention of it or its alternative in Bootstrap 5.0 docs. Its there in Bootstarp 4.6 docs.
I know we can use css media queries along with flex column, but in my case its getting too complex due to dynamic addition of cards.
So curious to know is there any bootstrap way to implement card-columns functionality in bootstrap 5.0 ?
CodePudding user response:
As explained in the Bootstrap 5 docs, card-columns were dropped in favor of Masonry.
"In v4 we used a CSS-only technique to mimic the behavior of Masonry-like columns, but this technique came with lots of unpleasant side effects. If you want to have this type of layout in v5, you can just make use of Masonry plugin. Masonry is not included in Bootstrap..."
Related: Bootstrap 5 layout for different sizes cards - like Pinterest