Created
September 24, 2013 12:01
-
-
Save sagarjadhav/6683720 to your computer and use it in GitHub Desktop.
jQuery Equal Height Elements
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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