Skip to content

Instantly share code, notes, and snippets.

@sagarjadhav
Created September 24, 2013 12:01
Show Gist options
  • Save sagarjadhav/6683720 to your computer and use it in GitHub Desktop.
Save sagarjadhav/6683720 to your computer and use it in GitHub Desktop.
jQuery Equal Height Elements
/* Equal Height */
jQuery('.elemWrapper').each(function(){
var max = Math.max.apply(Math, jQuery(this).find('.elem').map(function() { return jQuery(this).height(); }));
jQuery(this).addClass('fixed-height').find('.elem').height(max);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment