Skip to content

Instantly share code, notes, and snippets.

@fleeting
Created December 29, 2009 16:11
Show Gist options
  • Save fleeting/265392 to your computer and use it in GitHub Desktop.
Save fleeting/265392 to your computer and use it in GitHub Desktop.
function equalHeight(group) {
tallest = 0;
group.each(function() {
thisHeight = $(this).height();
if(thisHeight > tallest) {
tallest = thisHeight;
}
});
group.height(tallest);
}
$(document).ready(function() {
equalHeight($(".column"));
equalHeight($(".footer-column"));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment