Guest User

Untitled

a guest
May 14th, 2012
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment