I’d like to reset the height of the original document to remove extra space after elements are added. The code I have now is this.
$(document).ready(function() {
var document_height = $(document).height();
document_height = 0.70 * document_height;
$(document).height(document_height);
});
This should change the document height but doesn’t. Is there a better way to do this?
The code in the original question does work. Something else was adding more space to the document.