User06053 User06053 - 1 year ago 130
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.

Answer Source

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

Read this trick:

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download