Skip to content

Instantly share code, notes, and snippets.

@colewinans
Created November 15, 2012 22:07
Show Gist options
  • Save colewinans/4081656 to your computer and use it in GitHub Desktop.
Save colewinans/4081656 to your computer and use it in GitHub Desktop.
Equalize Div Heights
$.fn.setAllToMaxHeight = function(){
return this.height( Math.max.apply(this, $.map( this , function(e){ return $(e).height() }) ) );
}
$(document).ready(function() {
$("div.equal").setAllToMaxHeight();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment