I build a grid where the grid elements have an image, a title, a short text and a button. Here is an example.
As you can see, the images have bit of different height, also some titles and text are shorter/longer. I'm looking for a CSS/Vanilla JS solution which aligns the height of the images/titles/etc responsively for the row.
The result should be something like this:
So every image wrapper has the same height, the titles starts on the same position, the buttons are also aligned, etc.
This can't be CSS min-height, because the data source is dynamic and I don't know what I'll get. It must be responsive, work with 2/3/4/5 elements in a row. Also tried masonry, but didn't like it.
I tried to dig a bit and was able to match the height of the cards but not the parts of the cards.
Any suggestion would be appreciated.