Skip to content

Instantly share code, notes, and snippets.

@davidpaulsson
Created June 27, 2013 11:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidpaulsson/5875852 to your computer and use it in GitHub Desktop.
Save davidpaulsson/5875852 to your computer and use it in GitHub Desktop.
Equalize heights of div elements
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