I am creating a page that has a list on the left, and a container showing one item is on the right. Here is an example image showing the page layout and the parts I want to scroll through.

In the left container and in the right container, I need to scroll when the data exceeds the height of the container viewport. I just want the red selected containers to scroll - the outer blue container is fixed and the yellow part inside the blue container is fixed. Only the contents of the red containers should scroll only if applicable.
I put codepen where I play with it and can share it with you (the application itself is behind the firewall, codepen is the best I can do). What you will see in the codefen is that I can make the container scroll when I set its height (in this case 380 pixels, which is free about how much space is on the screen). If you move the codefen container of the sample up, you will see that the scroll area remains fixed (duh), and if you increase the height of the scrollable container beyond 380 pixels, as soon as you go below the viewing area, the scroll starts to go away - about 800 pixels or so he completely leaves.
What the hell am I missing here? Blue containers should be located at the bottom of the viewport, be it 800px high or 1600px high. Then the red height of the container will fill this available height inside the blue container and, if necessary, scroll it.
I'm really fixated on what I'm missing here.
Change JQuery and javascript parameters are not parameters. This is achievable only with CSS, I just lose some property somewhere and at an impasse.
Change 2 . I tried the suggested html (html: height: 100%, etc.). It works in codepen, but when I try to execute it on the full version of the site, it does not work. In the screenshot here, you see that the blue area with high lighting is the scroll container in question, and the white bar on the right is the scroll bar (background in the usual style), but the actual scroll is only the background on the panel. 
html css vertical-scrolling
Mike earley
source share