Div Layout z-Index Not Being Honored Issue

Mindwatering Incorporated

Author: Tripp W Black

Created: 05/19/2019 at 12:58 AM

 

Category:
General Web Tips
Style Sheets (CSS)

Issue:
Menu DIV drop down is behind another DIV with a lower z-index. Unless I set the z-index of the latter to -1, the DIV stays on top.

Solution:
The issue was actually with the parent menu DIV of the drop down. It did not have the tag:
position: relative;

The position tag must be set, and set to absolute, fixed, or relative to work.


previous page