9

I need scrollbars to be visible when a div has the overflow set to auto on mobile Safari and Chrome. Using ::-webkit-scrollbar in CSS works on desktop but not mobile.

https://codepen.io/panchroma/pen/wvdrzMe

The question has been asked already but the accepted answer doesn't work: Make scrollbar visible in mobile browsers

Evanss
  • 23,390
  • 94
  • 282
  • 505
  • This is not exactly the answer but if you want to give indication that there is more content and user can scroll down then you can try this https://stackoverflow.com/q/70131020/15273968 – the Hutt Dec 01 '21 at 11:53
  • [Codepen](http://www.codepen.io) is using it's own JS scrollbar. There are good opensource JS scrollbars available like. Https://kingsora.github.io/OverlayScrollbars/ – the Hutt Dec 03 '21 at 15:16
  • 1
    I think this is what you are looking for https://stackoverflow.com/q/3512885/11974339 or https://stackoverflow.com/a/17276376/11974339. – aekit Dec 04 '21 at 08:21

0 Answers0