Skip to content

Instantly share code, notes, and snippets.

@kferran
Created May 21, 2013 18:02
Show Gist options
  • Save kferran/5621882 to your computer and use it in GitHub Desktop.
Save kferran/5621882 to your computer and use it in GitHub Desktop.
jquery equal height columns
$.fn.setAllToMaxHeight = function(){
return this.height( Math.max.apply(this, $.map( this , function(e){ return $(e).height() }) ) );
}
// usage: $(‘div.unevenheights’).setAllToMaxHeight()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment