Currently I am using a vertical scrollbar for a div when the contents are larger than the height of the div. This works great on Chrome, IE 7(!) and Firefox.
However, on IOS devices like iPad and iPhone there are no scrollbars for divs. What is the recommended solution? For simplicity, I want to run the same code on all platforms: Chrome, IE 7+, Firefox, iPhone and iPad.
Thanks!
Actually there is an in-element scrollbar in iOS, it’s just hidden until it’s in use 🙁 You use a two-finger drag to activate an element’s scroll.
I don’t think you can override the OS hiding the scrollbar, but
overflow-y: scroll;in css is mostly likely what you want.