How to do overflow scroll for child element but not parent

Posted on: March 28th, 2022
By: Tadeo Martinez

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!

Leave a Reply

Your email address will not be published. Required fields are marked *