Advertisement
erenbostan

jQuery vertical align

Jul 6th, 2014
3,342
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     $(window).resize(function() {
  2.         var _Height = $(window).height();
  3.         var _top = _Height/2;
  4.         $("#ortala").css({'margin-top':_top});
  5.     });
  6.     $(window).trigger("resize");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement