Created
June 28, 2013 09:49
-
-
Save hkirsman/5883645 to your computer and use it in GitHub Desktop.
Equal height script
This file contains 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
jQuery.fn.equalHeight = function() { | |
var $el = $(this); | |
var colsHighest = 0; | |
$el.css('min-height', 0).each(function() { | |
var height = $(this).height(); | |
if (height > colsHighest) { | |
colsHighest = height; | |
} | |
}); | |
$el.css('min-height', colsHighest); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment