Skip to content

Instantly share code, notes, and snippets.

@andyError
Created November 4, 2017 11:09
Show Gist options
  • Save andyError/5f13add6b20a69fc241a21ae475ab81c to your computer and use it in GitHub Desktop.
Save andyError/5f13add6b20a69fc241a21ae475ab81c to your computer and use it in GitHub Desktop.
Equalise heights
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