user2733678
user2733678

Reputation: 37

Adding a scroll bar to a checkbox list

I am using this line

< div id="innerTOC" style="overflow-y:auto; overflow-x:hidden; width: 100%">

When I replace 'auto' with 'scroll' it inserts the scroll bar but is 'greyed out' and doesn't scroll. Is there something else I need to add?

Thanks

Upvotes: 3

Views: 8217

Answers (2)

Rahul Tripathi
Rahul Tripathi

Reputation: 172628

If your height is explicit then try to add overflow:scroll;

or try like this to add some height:-

<DIV style="OVERFLOW-Y:scroll; WIDTH:600px; HEIGHT:500px">
   </DIV>

Upvotes: 3

Quentin
Quentin

Reputation: 944474

The div needs to be shorter then the content of the div. Since you haven't specified a height, it will be as tall as it needs to be to hold all the content. Add a height: some-length.

Upvotes: 0

Related Questions