Skip to content

Instantly share code, notes, and snippets.

@gpassarelli
Created March 20, 2012 12:58
Show Gist options
  • Save gpassarelli/2135111 to your computer and use it in GitHub Desktop.
Save gpassarelli/2135111 to your computer and use it in GitHub Desktop.
jQuery: Equalize Heights of Divs
var maxHeight = 0;
$("div").each(function(){
if ($(this).height() > maxHeight) { maxHeight = $(this).height(); }
});
$("div").height(maxHeight);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment