How to make a mini scrollable area

I’d like to make a div to be scrollable and for the rest of the site not be scrollable. How would I do this?

1 Like

Set a height and a max-height on the div, and set overflow-y: scroll. This will restrict the div to so tall and let you scroll the div.

If you don’t want your whole page to be scrollable, simply set overflow: hidden on the body.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.