I want to have the body height
in CSS based on the document height
.
This code doesn't work:
$(document).ready(function() {
$("body").css({"height": $(document).height() * 4 }, 300);
});
I want to have the body height
in CSS based on the document height
.
This code doesn't work:
$(document).ready(function() {
$("body").css({"height": $(document).height() * 4 }, 300);
});
$(document).ready(function() {
var winHeight = $(window).height() * 4;
$("body").css({"height": winHeight + "px" });
});