I have a website that displays a large grid of cards like so:
The problem I'm having is that there is usually a large gap under each card and I don't know how to fix this. I want the cards to be fitted together like a collage or a puzzle.
Here is a link to the source code of the first card.
If you have any questions or requests, please ask me in the comments.
Use flexbox it can help you drag white spaces to make it even with other rows that contain more contents.