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