On this page
What this issue is
Browsers paint overlapping elements in a set order. z-index lets you push an element forward or back, but only against elements in the same stacking context. A stacking context is a self-contained layer. A parent can create one with position plus z-index, or with transform, opacity below 1, filter, or will-change.
Why it costs you leads or sales
Visitors who cannot see or click a menu item cannot reach your pricing, booking or checkout page. If the hidden dropdown is a country, date or service selector inside a form, they cannot finish the form at all. Most will not report it. They leave.
- Landing pageVisitor arrives and loads the page
- Opens dropdownMenu opens but sits behind the hero
- Picks an optionCannot see or click the items
- Form or checkoutNever reached
The visitor opens the menu, but the options are painted behind the hero, so the next steps never happen.
Example: share of 100 visitors who reach the lead form with a working menu and with the menu hidden behind the hero. Numbers are illustrative.
How to check if your site has it
Test by hand on the pages that matter most: the home page, landing pages, forms and checkout. Do it on a phone-sized screen as well as desktop, because mobile menus often use different CSS.
- Open every main menu and submenu and hover or tap each one
- Open every select, date picker and autocomplete in your forms
- Scroll down so the sticky header overlaps content, then open menus again
- Test with a cookie banner, chat widget and popup showing
- Repeat in Chrome, Safari and a mobile viewport
- Open DevTools, right-click the dropdown, choose Inspect and read its computed z-index and position
How to fix it
Identify the covering element
Use DevTools to find what is painted on top (hero, slider, sticky bar, form). Note its z-index and position.
Make sure the dropdown is positioned
z-index only works on positioned elements (relative, absolute, fixed, sticky) or flex and grid children. Add position: relative or absolute to the dropdown container.
Raise the z-index of the dropdown
Give the menu container a value higher than the covering element, for example 1000. Keep a short, consistent scale instead of huge numbers.
Remove the trap on the parent
If the dropdown is still hidden, a parent has created a stacking context or clips it. Remove the transform, opacity, filter or overflow: hidden from that parent, or raise the z-index of the parent itself.
Retest on desktop and mobile
Open every menu and select again, with the sticky header and cookie banner visible.
.site-header { position: sticky; top: 0; z-index: 1000; }
.nav-item { position: relative; }
.nav-item .dropdown-menu { position: absolute; z-index: 1010; }
/* Lower the content that was covering the menu */
.hero, .slider { position: relative; z-index: 1; }Add CSS in the Customizer
Go to Appearance > Customize > Additional CSS (or Appearance > Editor > Styles > Additional CSS in block themes) and paste your z-index rule using the menu's real class.
Check builder settings
In Elementor, Divi or similar, open the covering section's Advanced settings and lower its Z-Index, or raise the header's.
Edit theme CSS
Go to Online Store > Themes > Edit code and add the rule to your main stylesheet in the assets folder (the file name depends on the theme).
Check apps
Disable one app at a time that adds popups, bars or widgets to see if it is the one covering the menu.
Set position and z-index
Select the dropdown or navbar, open the Style panel, set Position to Relative, and set Z-index in the Position section. Check parent sections for Overflow: hidden.
Change layer order
In the Wix Editor, select the covering element, use Arrange > Send backward or Send to back, and test the menu in Preview.
Add custom CSS
Go to Website > Website Tools > Custom CSS and add a z-index rule for the header or menu class. Class names vary by template, so inspect them first.
Adjust the section
In the funnel or website builder, open the covering section's settings and lower its z-index, or add a rule under Settings > Custom CSS for the page.
Define a z-index scale
Keep values in one place, for example CSS variables such as --z-dropdown: 1000 and --z-modal: 2000, and use them everywhere.
Render popups at the body level
For select lists and date pickers inside clipped containers, append the menu to document.body so no parent can trap it. Many UI libraries have a portal or appendTo option.
Before
- Menu opens behind the hero image
- Parent with transform traps the layer
- Options cannot be clicked
After
- Menu paints above the hero and sticky bar
- Parent no longer creates a stacking context
- All options visible and clickable
How to confirm it's fixed
Open every menu and select on the affected pages and click each option. Test at narrow and wide widths, then with the cookie banner and chat widget visible. Finally, complete one real form submission or add-to-cart flow to prove the dropdown no longer blocks it.
How to prevent it happening again
- Keep a documented z-index scale (header, dropdown, modal, banner) and reuse it
- Avoid adding transform, filter or overflow: hidden to wrappers around menus without testing
- Retest menus after theme, plugin or page-builder updates
- Test new popups, banners and chat widgets against open menus before publishing
- Include dropdowns and selects in your pre-launch checklist for every landing page
How FunnelGuard handles this
FunnelGuard does not check for z-index or dropdown layering problems yet. It is a possible future check. Today FunnelGuard runs your real customer journeys with a robot visitor and checks each step, so if a hidden dropdown stops the robot from completing a form or reaching a page, the journey can fail and you get a re-checked alert with a screenshot and a likely cause. That only helps when the dropdown blocks the path the journey takes, and it will not report a menu that is merely awkward.
To watch for this issue, add the manual check above to your release routine, and use browser DevTools or a visual regression tool of your choice to compare screenshots of open menus after each update. The Free plan covers 1 site and 2 journeys with daily checks, and no card is needed.
Questions people ask
Why is my dropdown menu behind other content?
The dropdown has a lower stacking order than the element covering it, or it sits inside a parent that creates its own stacking context. Raise its z-index, make sure it is positioned, and remove properties like transform or overflow: hidden from the parent.
Why is z-index not working on my dropdown?
z-index only applies to positioned elements or flex and grid items, and it only competes with elements in the same stacking context. If a parent has transform, opacity below 1, filter or its own z-index, a high value on the child cannot escape it.
How do I bring a dropdown to the front?
Set position: relative or absolute on the dropdown container and give it a z-index higher than the covering element, such as 1000. If that fails, fix the parent that traps it or append the dropdown to the body.
Why does my menu go behind the hero slider or sticky header?
Sliders and sticky headers often have their own position and z-index values, and sliders may use transforms. Give the header and menu a higher z-index than the slider, or lower the slider's value.
Why is my select or date picker hidden inside a form?
A parent container probably has overflow: hidden or a transform that clips or traps the popup. Remove that property, or configure the picker to render its popup at the body level.
How do I find which element is covering my dropdown?
Open DevTools, right-click the area where the menu should be and choose Inspect. Check the element on top and the parents of your dropdown for position, z-index, transform, opacity and overflow.
Does FunnelGuard detect z-index or hidden dropdown problems?
No. FunnelGuard does not check for this yet. It can fail a journey if a hidden dropdown stops the robot from completing a step, but it does not report layering issues themselves.
Related issues
- PRF-373Overlapping elements or textFix guide
- PRF-372Page looks broken after theme/plugin update (visual regression)Fix guide
- PRF-374Text cut off / truncated in buttonsFix guide
- PRF-385Screenshot of the funnel step looks different from expectedFix guide
- PRF-382Form elements unstyled (browser defaults) after CSS failureFix guide
- PRF-375Inconsistent button styles across funnelFix guide