Answer the question
In order to leave comments, you need to log in
How to change block height with js?
This is generally not a difficult task, Rewrite the script to pure js without using Jquery
function reSize() {
new_height = $("body").height() - $("#head").height() - $("#footer").height() - 44;
$("#content").height(new_height + 'px');
}
$(window).load(reSize);
$(window).resize(reSize);
Answer the question
In order to leave comments, you need to log in
var new_height = document.body.offsetHeight - document.getElementById('head').offsetHeight - document.getElementById('footer').offsetHeight - 44;
document.getElementById('content').style.height = new_height + 'px';
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question