Posted By

iqwebdev on 07/14/10


Tagged


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

jackkeller
jfherring


Equalize Heights of Divs


 / Published in: jQuery
 

  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.