0

Remove space between different bootstrap card groups.

I want to remove space between different card groups so that next group card can use space left by previous group cards because of different sizes of cards. https://code.sololearn.com/WA2A5A25A211/?ref=app (see in desktop)

30th Jan 2021, 9:56 PM
harshit
harshit - avatar
5 Respostas
0
So you want it to be horizontal with no spaces?
31st Jan 2021, 1:30 AM
Chris Coder
Chris Coder - avatar
0
Chris C. yes, just like a collage. To use every space.
31st Jan 2021, 6:59 AM
harshit
harshit - avatar
0
Since you're using bootstrap. You can make the cards all the same height. In the CSS tab type this .card { height: 400px; } If you intend to create a gallery with different sizes then a grid would be better.
31st Jan 2021, 7:27 AM
Chris Coder
Chris Coder - avatar
0
Chris C. Actually I am dynamically adding cards using javascript and the no of cards may vary. Is there any robust automatic way ?
31st Jan 2021, 7:50 AM
harshit
harshit - avatar
0
Chris C. New cards are added automatically.
31st Jan 2021, 10:29 AM
harshit
harshit - avatar