Important Note: While similar questions have been asked before, it's important to consider that the mobile web is constantly evolving. The discussions from a few years ago may no longer be relevant due to updates and changes in technology.
I am currently facing an issue creating a basic scrolling <div>
on the Android browser. In most compliant browsers, this can be achieved by setting a fixed size and using overflow-y: auto
. Unfortunately, it seems like mobile Webkit browsers do not support this attribute. Are there alternative methods or equivalents that I can explore?
If possible, I would prefer a CSS-based solution. I am aware of JavaScript widgets like iScroll and Dojo Mobile lists, but they may be too complex for my requirements. According to the iScroll documentation, it mentions that "latest Android revisions are supporting this functionality (although support is not optimal)". This raises the question of whether Android 4.0 has resolved this issue.