Equal Height Columns (DIVs)

[javascript]
function equalHeight(group) {
tallest = 0;
group.each(function() {
thisHeight = $(this).height();
if(thisHeight > tallest) {
tallest = thisHeight;
}
});
group.height(tallest);
}

$(document).ready(function() {
equalHeight($("#left,#right,#content"));
});
[/javascript]

Leave a Reply