Imagine three boxes lined up, each with an image and a title inside. I can adjust the height using the height
property to make them all the same height. However, in a Responsive view, when the boxes shrink, their fixed height can cause extra white space to appear after the title (especially when the title only takes up one line, not two).
Although I could use padding-bottom
, this would not ensure that the boxes have equal heights, as some titles are longer and may span two lines, thus creating more height.
How can I achieve equal height for these boxes without creating extra white space when they shrink in a responsive view?