Jquery equalHeights


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



Copy this code and paste it in your HTML
  1. function equalHeight(group) {
  2. tallest = 0;
  3. group.each(function() {
  4. thisHeight = $(this).height();
  5. if(thisHeight > tallest) {
  6. tallest = thisHeight;
  7. }
  8. });
  9. group.height(tallest);
  10. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.