I am currently working on a responsive design and have some content boxes in three columns. I want all content boxes to be of the same height. So, I did some Google'ing and found several jQuery solutions.
I finally settled on something similar to this:
$(".equal-height").each(function() {
maxHeight = $(this).height() > maxHeight ? $(this).height() : maxHeight;
});
$(".equal-height").height(maxHeight);
This works great, except for one issue.
When you resize the window the columns can get wider/skinnier and therefore the text repaginates itself.
The JavaScript appears to not be able to calculate the height of the repaginated text during window resize.
I have found similar issue with window resize and text issues.
Has anyone figured out a solution for this?
I can't believe a responsive design with equal height columns is so hard.
Thanks for any ideas!
Mark