Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 74765

Vertical scrolling for multiple div tags inside a div tag

$
0
0

I am trying to create a scrollable file tree. Minimal code can be found below.

https://jsfiddle.net/3kLmchot/1/

Problem is when I try to add overflow-y: scroll;, to the filebrowse-outer div, the first few items are not visible at all. This problem gets worse when I add more divs.

It seems like items are added about the center of the filebrowse-outer div, so the items that are added at the bottom can be found via scrolling, but the items that are added at the top are invisible. (see the visual aid below)

item 1  
item 2  
center of the div  
item 3  
item 4 

Scroll bar forms at around item 2, which makes item 1 invisible. Does anyone know why this is happening, and potential solutions?


Viewing all articles
Browse latest Browse all 74765

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>