jQuery Height Fix


/ Published in: jQuery
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.