Hello,
I use this jQuery function to make the <li>
have equal heights.
function equalHeight(group) {
var tallest = 0;
group.each(function(index) {
var thisHeight = $(this).height();
if(thisHeight > tallest) {
tallest = thisHeight;
}
});
group.height(tallest);
}
My problem is that they take the height of the tallest one.
My <li>
s are displayed in rows of 3 (3rowsx3columns). So if one row has <li>
s with small height they get the tallest element height and it's a waste of space.
Is there a way to make the script check for the tallest <li>
in every row?
Thank you in advance.