Skip to content

Instantly share code, notes, and snippets.

@bekapod
Last active November 28, 2016 11:03
Show Gist options
  • Save bekapod/5841183 to your computer and use it in GitHub Desktop.
Save bekapod/5841183 to your computer and use it in GitHub Desktop.
JS: Equal height elements
var maxHeight = 0;
$("div").each(function(){
if ($(this).height() > maxHeight) { maxHeight = $(this).height(); }
});
$("div").height(maxHeight);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment