I would like to reset the height of the original document to remove extra space after adding elements. Now I have the code.
$(document).ready(function() {
var document_height = $(document).height();
document_height = 0.70 * document_height;
$(document).height(document_height);
});
This should change the height of the document, but it is not. Is there a better way to do this?
source
share