Posted By

cesgra on 10/26/09


Tagged


Versions (?)

Who likes this?

5 people have marked this snippet as a favorite

cesgra
jannisg
jirimelcak
nightshiftc
vehler


Equalize Heights of Divs


 / Published in: jQuery
 

URL: http://css-tricks.com/snippets/jquery/equalize-heights-of-divs/

  1. var maxHeight = 0;
  2.  
  3. $("div").each(function(){
  4. if ($(this).height() > maxHeight) { maxHeight = $(this).height(); }
  5. });
  6.  
  7. $("div").height(maxHeight);

Report this snippet  

You need to login to post a comment.