User06053 User06053 - 1 month ago 5
CSS Question

Absolute HTML elements and browser scroll

I have a HTML div element with absolute position style enclosed by another div with "overflow:hidden" which is not without any position styles. When the browser scroll bar is scrolled down. The absolute styled div element stays in the same location. How to enclose it within the div element?
Please help me in this.


Give the parent element the css attribute of position:relative;

Read this trick: