December 11, 201015 yr 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...
December 11, 201015 yr 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.
December 11, 201015 yr 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
December 16, 201015 yr 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