Created
November 4, 2017 11:09
-
-
Save andyError/5f13add6b20a69fc241a21ae475ab81c to your computer and use it in GitHub Desktop.
Equalise heights
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
var heights = []; | |
$('.whatevers').each(function(index) { | |
heights.push($(this).outerHeight()) | |
}); | |
var largest = Math.max.apply(Math, heights); | |
$('.whatevers').css('min-height', largest + 'px'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment