I am searching for a solution to scroll a panel located beneath a non-scrolling panel. Here is an example of what I am attempting to achieve:
Essentially, the 'stay on top' element needs to remain at the top while allowing all the scrolling elements to scroll when necessary. I thought that by nesting the scrolling elements in a div (named nest) and positioning that nest relatively, I could then position the scrolling div absolutely. However, when I tried this, it seemed to disappear.
The closest workaround I have found so far is this:
However, you'll notice that I had to set the following:
#scroll {
top: 20px;
}
I would prefer to avoid this workaround because I do not know the exact size of the 'stay on top' element. Is there any alternative approach I can take (besides setting the 'stay on top' to fixed)?