Skip to content

Instantly share code, notes, and snippets.

@riix
Created July 24, 2012 07:36
Show Gist options
  • Save riix/3168613 to your computer and use it in GitHub Desktop.
Save riix/3168613 to your computer and use it in GitHub Desktop.
Equal Height Columns (DIVs)
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"));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment