I have a position: absolute
div that I need to be tall enough to reach the bottom of the page when scrolling all the way down. Essentially, it should span the entire height of the document page, not just the window.
I've discovered that using viewport height (vh
) won't work in this case because it only stretches elements to the full height of the window.
Check out the updated Fiddle for reference: https://jsfiddle.net/jygrinberg/qsyLqns7/4/
If needed, I'm open to solutions involving JavaScript or jQuery to achieve the desired effect.
UPDATE: Keep in mind that the content on the page might exceed the content within the div itself (I made adjustments to the Fiddle to reflect this).