Equal column height

When building a column based website, you often want that all columns have the same height, as displayed in a good old table. This snippet calculate the height of the higher column and automatically adjust all other columns to this height.

var max_height = 0;
    if ($(this).height() > max_height) { max_height = $(this).height(); }


Share this snippet