Within my application, I have been developing dynamic pages with a CSS property of overflow-y:auto
applied to the page container. Everything seems to be working fine,
The issue arises when the page loads and the height exceeds that of the container. While the scroll functionality works, the scrollbar is positioned at the bottom of the page. This means that instead of seeing the top of the content within the container, I am automatically taken to the end.
Is there a way to resolve this problem without resorting to using any scripts? If so, could someone kindly suggest the correct approach?
Do I need to introduce any specific additional CSS properties to the container to rectify this issue?
I would greatly appreciate any advice or guidance on how to tackle this correctly.
Update: This behavior is isolated to the Chrome browser. IE and Firefox display the content correctly.