Guest User

Untitled

a guest
Jul 23rd, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. var divheight = 0;
  2.  
  3. $('.post').each(function () {
  4. if ($(this).css('top') > divheight) {
  5. divheight = $(this).css('top') + $(this).height();
  6. }
  7. });
  8.  
  9. $('#posts').height(divheight);
Add Comment
Please, Sign In to add comment