3

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

Rahul Tripathi
  • 168,305
  • 31
  • 280
  • 331
user2733678
  • 37
  • 1
  • 5

2 Answers2

3

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>
Rahul Tripathi
  • 168,305
  • 31
  • 280
  • 331
0

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.

Quentin
  • 914,110
  • 126
  • 1,211
  • 1,335