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.

CSS dropdown submenu disappearing

Featured Replies

I have a problem with a pure css dropdown menu since I added an absolutely positioned div near the bottom of the page to anchor some text into a specific position. The dropdown appears on mouseover, but when you try to mouse over the submenu it disappears. I'm not using any javascript for the menu.

 

Since I realised the problem, I've isolated the code to the one page where I need to have the extra div with the text, but I cannot think of another way to position the text where it needs to be - just over the image it refers to - without using relative/absolute positioning, and it seems that this is causing the problem for sure, but I don't understand why.

 

This is the page: http://www.cottagesinstives.co.uk/lowersaltings_apartment.html

 

The dropdown menu that's affected is the 'properties' tab.

 

The image and its text are at the bottom of the page.

 

This behaviour appears to be consistent across all the browsers I've tested - IE, Safari and Firefox.

 

Any suggestions would be most welcome.

 

Thank you.

Try putting the z-index at a high number (999 for example) your submenu is too low in the stacking order.

  • Author

Hi thanks for the reply, I had done this already but not in the right place! Putting it on the #nav li ul sorted it.

 

Thanks again.

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.