element with a higher z-index doesn’t cover its siblings with a lower z-index
-
Exa[ redundant link removed ][ redundant link removed ]
Screenshot: https://srv19859.microhost.com.pl/2020-05-12_12h34_51.jpgDropdown goes under the button. I have no idea how to deal with it. The tree structure is as follows:
<div class="taxonomy-dropdown"> <button class="dropbtn"></button> <div class="taxonomy-dropdown-content"></div> </div>
– .taxonomy-dropdown has z-index: 3
– .dropbtn has z-index: 1
– .taxonomy-dropdown-content has z-index: 3So the .taxonomy-dropdown-content should cover its sibling .dropbtn because it has a higher z-index, right? That’s not happening. Where is the cause of the problem?
- This topic was modified 4 years, 6 months ago by .
- This topic was modified 4 years, 6 months ago by . Reason: Moved to Fixing WordPress, this is not an Everything else WordPress tMoved to Fixing WordPress, this is not an Everything else WordPress topic
The page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘element with a higher z-index doesn’t cover its siblings with a lower z-index’ is closed to new replies.