I am trying to display a couple of div
tags located in a list div with a vertical scrollbar. I only want the divs currently visible in the displayport of the list to have display: block
, the rest should be hidden until the user scrolls.
The reason is that I am trying to display copious amounts of data which kills the browser if its all shown at the same time.
Here's a live example where you can see what I mean: http://jsfiddle.net/RFr3g/2/
Thanks in advance