Link to home
Start Free TrialLog in
Avatar of lightmatrix
lightmatrix

asked on

Infinite z-index - Element always on top

How can I tell an element to have an infinite z-index?

For example, if I have two divs:

<div id="top">Always on top</div>

<div id="bottom">Always on bottom</div>

How can I tell the top div to *always* have a higher z-index?

Thank you!
ASKER CERTIFIED SOLUTION
Avatar of Brad Dobyns, CSM
Brad Dobyns, CSM
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Or something like this:

top.zIndex = 999;
Did this solution work? I have not heard from you.

Thanks,
Brad