Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function() {
- // Optimal size for bodyWrapper2
- bwResize();
- $(window).resize(bwResize);
- });
- function bwResize() {
- var w = $('body').width();
- var h = $('body').height();
- $('#bodyWrapper2').css({
- 'top' : '50px',
- 'left' : '50px',
- 'width' : (w - 100)+'px',
- 'height' : (h - 100)+'px',
- 'margin' : '0'
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement