Auto resize all div height to fit text the the largest text.

Auto resize all div height to fit text the the largest text.

Hi,  I currently have multiple combos of  image with a description text below it. I want to lay them out in rows and inline. So if the width of page is not enough the next one should start beginning of next row. Each image and text is currently house by a div with float left and a set width, but if you look at the attached screenshot (1.jpg), The Oracle - eBusiness Suite gets stuck because of the differents height due to text size and if I set a height too, then some of the text gets covered up (2.jpg). I was thinking if I can maybe use J Query to automatically adjust height to divs on the same row to fit the biggest text size on that row? Even just changing all divs to that height be would be ok if it's easier. 
 
Since I'm a newbie with limited ideas so I'm open any other approach in tackling this kind of problem.
 
Thanks,
Jase