/ Published in: jQuery
Simple way to create equal height columns/divs
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$.fn.setAllToMaxHeight = function(){ return this.height( Math.max.apply(this, $.map( this , function(e){ return $(e).height() }) ) ); } // usage: $('div.unevenheights').setAllToMaxHeight()
URL: http://www.broken-links.com/2009/01/20/very-quick-equal-height-columns-in-jquery/