Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 14th, 2012  |  syntax: None  |  size: 0.52 KB  |  hits: 18  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Add top-margin based on height of other element with jQuery
  2. $(document).ready(function(){
  3.     if ($('.post_discussion_header').height(79) + 'px'){
  4.         $('.no_0').css('margin-top','110px');
  5.         }
  6.     });
  7. });
  8.        
  9. if ($('.post_discussion_header').height() == 79){
  10.        
  11. if (parseInt($('.post_discussion_header')[0].offsetHeight,10) == 79){
  12.        
  13. $(document).ready(function(){
  14.     if ($('.post_discussion_header').height() == 79) {
  15.         $('.no_0').css('margin-top','110px');
  16.     }
  17. });
  18.        
  19. if('[object Object]px') {
  20.     ...
  21. }