Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var pageHeightRecount = function(){
- $("#main").css({
- minHeight: ($('#main').height() + 79) + 'px'
- });
- $("#conteiner").css({
- minHeight: ($('#conteiner').height() + 79) + 'px'
- });
- $("#content").css({
- minHeight: $('#content').height() + 'px'
- });
- return function(){
- $("#main").css({
- height: ($('body').height() - 79) + 'px'
- });
- $("#conteiner").css({
- height: ($('body').height() - 79) + 'px'
- });
- $("#content").css({
- height: ($('#conteiner').height() - 205) + 'px'
- });
- }
- }();
- $(window).on('resize', function(){
- pageHeightRecount();
- });
Add Comment
Please, Sign In to add comment