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.

Submenu not clickable

Featured Replies

Hello guys, i'm building a website using wordpress and i've got a little problem. Everything is fine and working but i can't click on any link available in my submenu using jquery superfish. The submenu works in every other page, but when i'm using a special jquery gallery from a tutorial the submenu stop "working" i can't click on it and it get's hidden. Take a look here http://enovastudio.org/wordpress-demo/photographer/gallery/ if you go on the homepage, the submenu works, but not on the gallery page.

 

The submenu works on the gallery page until the gallery is not loaded, once the gallery is loaded and jquery moves the bar from the left it stop working... is there a way to fix this ? i've spent more than 3 hours tryng to fix this (i'm sure it's a css problem) but i can't figure it out... that's why i'm asking your help guys....

 

thanks...

I fiddled about with z-index and position for a while, but when I added different background colors to #navbar and ul.sub-menu li, ul.sub-menu ul li I could see that there was a space between the top level and the drop down level. I added a negative margin-top to the lower ul tag

ul.sub-menu {     margin-top: -15px;                                 
border-top:  1px solid #28476f;
border-left: 1px solid #3e608b;
border-right:  1px solid #3e608b;
border-bottom: 1px solid #3e608b;
}

 

and the hover now doesn't break as you move from the top to the drpdown level in Firefox. IE7 seems OK too.

Looking at it you need to add botton padding to your top level li as there a gap between this and your sub-menu

 

something like this you may need to play around with the drop down padding

 

#navbar li {
   padding: 0 0 15px;/*adds padding to all li in #navbar*/
}
#navbar li ul li {
   padding: 0;/*removes padding from dropdown li*/
}

 

 

I didn't see wickham had already answered :rolleyes:

  • Author

I fiddled about with z-index and position for a while, but when I added different background colors to #navbar and ul.sub-menu li, ul.sub-menu ul li I could see that there was a space between the top level and the drop down level. I added a negative margin-top to the lower ul tag

ul.sub-menu {     margin-top: -15px;                                 
border-top:  1px solid #28476f;
border-left: 1px solid #3e608b;
border-right:  1px solid #3e608b;
border-bottom: 1px solid #3e608b;
}

 

and the hover now doesn't break as you move from the top to the drpdown level in Firefox. IE7 seems OK too.

 

yeah it worked but then i wasn't able to adjust the position, becouse there was a problem with the background of the ul. Nvm i changed script for the gallery and everything works now thanks anyway

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.