Posted on: March 28th, 2022
For the overflow:scroll to work on the child element and not the parent, you need to assign a determined height to the child element.
In this case I set the height to bigger than the viewport height because the parent element has an overflow:hidden so it won’t show the extra space and be able to scroll only on the child element.
Have any questions or comments? Write them below!