Skip to content

Instantly share code, notes, and snippets.

@nicovanzyl
Created October 20, 2015 13:02
Show Gist options
  • Save nicovanzyl/c982227f3d99f9bdafae to your computer and use it in GitHub Desktop.
Save nicovanzyl/c982227f3d99f9bdafae to your computer and use it in GitHub Desktop.
Make two elements the same height
var $columns = $('.column');
var height = 0;
$columns.each(function () {
if ($(this).height() > height) {
height = $(this).height();
}
});
$columns.height(height);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment