“Sticky” content overlaps dropdown menus
See original GitHub issue“Sticky” content (using the .sticky-top class for example) overlap dropdown menus. This doesn’t make sense, has been raised before (#28569, #28590, #28926) without any explanation, other than a shoot-down about not rearranging the z-index scale because it’s been like that for however long.
Sorry, but having “sticky” content slide over dropdown menus doesn’t make any sense, whatsoever. So what is the actual rationale for leaving it like this and not even considering fixing it?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:8 (6 by maintainers)
Top Results From Across the Web
Bootstrap 4 sticky dropdown and sticky nav overlapping ...
If I click on the dropdown, the vertical (blue) menu is the main one to click. The problem has suddenly appeared after adding...
Read more >Progress Bar Overlaps Drop Down Menu on Mobile
I targeted my sticky header with its CSS class to get the bar to appear below it. It's working almost perfectly, except on...
Read more >6.2.4.3 Logo overlapping menu items on tablet landscape ...
First go to WP Admin -> Qode Options -> Header -> Header Type, select Sticky Divided, and save. Then go to WP Admin...
Read more >How to Avoid Sticky Table of Content From Overlapping in ...
Due to different themes, you could encounter a Sticky Table of Content overlapping with your header menu or footer.
Read more >Overlapping Sections + Sticky Header and Footer ... - YouTube
This tutorial shows how you can make Elementor sections overlap. Create an overlapping sections effect alongside with a sticky header and a ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@mdo Cool 🙂
I’m currently overriding the z-indexes in my own project to work around this, but wanted to raise it as it does seem to go against expectations. But I can understand it might get complicated with sticky navbars with dropdowns (where the dropdown needs a higher z-index than the sticky navbar) but then sticky content (like in the example above) that should sit underneath. Maybe the z-index hierarchy should go like this (highest to lowest):
That’s more than fair, I get that issue. I think sticky content wasn’t on our minds because we were look at is like sticky navigation in the form of navbars and what not. This is definitely a use case we should account for and would require a z-index update in v5. Not sure what we could do about v4 though.