Posted By

dnnsldr on 09/14/12


Tagged

equalheights


Versions (?)

Who likes this?

4 people have marked this snippet as a favorite

spee66
sunilsk
BrockSamsom
johnw


Set Equal Column Heights


 / Published in: jQuery
 

URL: http://www.broken-links.com/2009/01/20/very-quick-equal-height-columns-in-jquery/

Simple way to create equal height columns/divs

  1. $.fn.setAllToMaxHeight = function(){
  2. return this.height( Math.max.apply(this, $.map( this , function(e){ return $(e).height() }) ) );
  3. }
  4.  
  5. // usage: $('div.unevenheights').setAllToMaxHeight()

Report this snippet  

You need to login to post a comment.