I am dealing with two nested DIVs that are both scrollable.
When I scroll the "inside div" (the green one in the attached file), and reach the bottom of the DIV, it starts scrolling the DIV beneath it. How can I prevent the DIV beneath from scrolling only when I scroll the top DIV?
<div class="container">
<div class="neneathDiv">
blah blah <br>blah blah <br>... (content truncated for brevity)
<div class="topDiv">
blah blah <br>blah blah <br>... (content truncated for brevity)
</div>
</div>
.container{background-color: blue; }
.topDiv{background-color: green; width: 300px; position: absolute; top: 0;
right:0; height: 100%; z-index: 99; overflow: auto;}
.neneathDiv{background-color: red; height: 100px; height: 100%; overflow: auto;}