Advertisement
nucklear

Equal heights columns with Jquery...IT WORKS!

Jun 17th, 2012
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (function ($) {
  2.  
  3.     /* Equal height */
  4. function equalHeight(group) {
  5.     var tallest = 0;
  6.     group.each(function() {
  7.         var thisHeight = $(this).height();
  8.         if(thisHeight > tallest) {
  9.             tallest = thisHeight;
  10.         }
  11.     });
  12.     group.height(tallest);
  13. }
  14.  
  15. /*USE*/
  16. equalHeight($('.class'));
  17.  
  18.  
  19. ......
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement