One question that arises is how to create a version of a webpage where only the yellow block can slide up, while the red and green blocks remain fixed. Currently, the green block is treated with the following CSS:
position:sticky;
right:0px;
top:100px;
This keeps the green block fixed in place, but there is an issue when the height is not specified - it behaves as if it has position:sticky; I would like the height of the green block to be customizable, so I set it to 200px; However, this causes problems when there is too much content or in responsive design mode, as the block overflows the green zone.
Is there a better way to keep the red and green blocks fixed in place?
So far, here is what I have been attempting: https://codepen.io/hong-wei/pen/wvgbbye?editors=1100