Advertisement
shmaltorhbooks

Untitled

Aug 16th, 2012
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $(window).resize(function(){
  2.     var top = ($(window).height() - 100)/2;
  3.     var left = ($(window).width() - 200)/2;
  4.     $('.div_class').css({'left': left, 'top':top})
  5. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement