Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Dropdown behind other content (z-index): how to find and fix it

PRF-381Medium impactCould addBy FunnelGuardPublished Updated
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.

Where a hidden dropdown breaks the journey
  1. Landing pageVisitor arrives and loads the page
  2. Opens dropdownMenu opens but sits behind the hero
  3. Picks an optionCannot see or click the items
  4. Form or checkoutNever reached

The visitor opens the menu, but the options are painted behind the hero, so the next steps never happen.

Visitors reaching the formExample numbers
Visitors reaching the form (example)Dropdown visible: 40 %; Dropdown hidden: 22 %015314022Dropdown visibleDropdown hidden%

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.

Manual check
  • 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

Fix a dropdown hidden behind content
  1. Identify the covering element

    Use DevTools to find what is painted on top (hero, slider, sticky bar, form). Note its z-index and position.

  2. 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.

  3. 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.

  4. 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.

  5. Retest on desktop and mobile

    Open every menu and select again, with the sticky header and cookie banner visible.

Typical fixcss
.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; }
Where to apply it on your platform
  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.

  2. 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.

Dropdown behaviour

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

Prevention
  • 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.

Does FunnelGuard catch this?

Could add

Not checked yet: could be added to FunnelGuard.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.