SyntaxFix
Write A Post
Hire A Developer
Questions
This is impossible as a child's z-index is set to the same stacking index as its parent.
z-index
You have already solved the problem by removing the z-index from the parent, keep it like this or make the element a sibling instead of a child.