I want the div to be scrollabe, and the webpage to be not, but the webpage is scrollable and the div is not

I am making a webpage and I want just a div on my webpage to be scrollable, but the div is not scrollable and the whole webpage is scrollable. Why is this? Can you please give me the right code for this?
Here is the link:
Multi-Ware - HTML, CSS, JS Repl - Replit (On the repl, click on TV. (The webpage I’m working on is in a frame. On the editor, click on Iframe, then click on TV.html)

Hi @RahikAhsan thanks for your question!

The div isn’t limited in size so that is why there isn’t a scroll bar next to the list of TV channels.

I found some example code that might help you fix this:

Hi, sorry, I’ve would like to know, what is the div, is it visible, and what is the use of it, why it needs to be scrollable.

It’s been 10 months. I’m sure that OP has solved it already.

1 Like