Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Menu drop down sitting under Top Level text

Featured Replies

Good evening,

 

I have a website where the dropdown section of the menu drops behind the top level text (sorry if that doesn't make sense).

 

I have tried changing the z-index but can't suss it. I need a fresh pair of eyes to help me out :-)

 

Thanks in advance folks xx

Edited by Charly

All the menu elements have a z-index of 40 which means that the drop downs will open below the top level menu item.

 

Several ways to correct it. The easiest is to add a little inline style to the Windsurfing and Gap Years menu items.

 

Take the Windsurfing item for example, change:

 

 

<li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-4449" id="menu-item-4449">
 

 

 

to:

 

 

<li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-4449" id="menu-item-4449" style="z-index:30;">
 

It may also be possible to add an extra class to those items and set the z-index there or perhaps something like:

 

 

#menu-item-4449, #menu-item-4472 {
z-index:30;
}
 

May do the trick.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.