Posted By

joshangell on 06/30/11


Tagged

fix jquery height


Versions (?)

jQuery Height Fix


 / Published in: jQuery
 

  1. $('#some-container').each(function(){
  2. var h = 0;
  3. $(this).children('specify-element-if-you-need-to').each(function(i){
  4. if($(this).height() > h){h = $(this).height();}
  5. });
  6. $(this).children('specify-element-if-you-need-to').css({'height': h});
  7. });

Report this snippet  

You need to login to post a comment.