In my website development process, I have implemented JQuery to style the pages and calculate property values using numbers from javascript functions like window.innerHeight. Everything is functioning well so far. However, I am currently facing a challenge when trying to calculate the height of the document (not just window height), subtract the footer's height, and position a shadow image right above the footer. Safari seems to be giving me inconsistent results, placing the shadow element in random positions each time.
$("div#shadowBottom").css({
"position":"absolute",
"top":(window.scrollMaxY-$(".footer").css("height").replace("px","")-50)+"px",
"left":"0px",
"width":"100%"
"height":"50px"
});
I experimented with wrapping the document in a div and calculating the heights to factor in the footer and shadow elements, but unfortunately, it did not work as expected.