I need to give an element a specific height based on document\'s height and keep it whether the document size changes:
$(document).ready(function () { $(
Something like this seems to work fine for me:
$(function() { $("div#test").css("height", ($(document).height() - 325) + "px"); });