Posted By

typomatic on 02/03/11


Tagged


Versions (?)

Who likes this?

4 people have marked this snippet as a favorite

AllKnightAccess
virendrakryadav
joaobarbosa
rbulgueroni


Equalize column heights


 / Published in: jQuery
 

There isn't really anything here that others haven't already accomplished in plugin form. I needed something simple that could be easily stored, retrieved, and reused.

  1. // Equalize column heights
  2. var max = 0;
  3. $('#list, #of, #elements').each(
  4. function(){
  5. max = Math.max( max, $(this).height() );
  6. })
  7. .css({
  8. 'height': max
  9. });

Report this snippet  

You need to login to post a comment.