Arshad Rehmani
Arshad Rehmani

Reputation: 2185

unable to scroll a container div element on chrome (Mobile Version)

I have a pop up like div (say parentDiv) which has a child div (say containerDiv) that contains a set of div elements and is scrollable on desktop chrome.

<div id="parentDiv" style="position: absolute; top: 100px;">
  <div id="containerDiv" style="overflow: auto; position: relative; height: 150px;">
       <div>List 1</div> <!--Child div elements-->
       <div>List 2</div>
       <div>List 3</div>
       <div>List 4</div>
  </div>
</div

Surprisingly, i'm able to scroll it on chrome on desktop, but unable to scroll on chrome on my Tablet device.

Please point out whats wrong here.

Upvotes: 4

Views: 1488

Answers (1)

jenkizenki
jenkizenki

Reputation: 798

Have you tried using:

overflow-y:scroll

instead?

Upvotes: 2

Related Questions