/    Sign up×
Community /Pin to ProfileBookmark

suckerfish – menu open on load – stuck open for parent items

I’m going crazy… when I go to the page for a parent item, the submenu for that item is visible onload, and won’t go away. It is simple to see/understand, but it is proving very hard to fix.

AAAAArrrrrrrrggghhhhh!

OK: [url]http://www.btcoatingservices.com/our-company.html[/url]

not OK: [url]http://www.btcoatingservices.com/industries.html[/url]

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@SleeperIntauthorJun 27.2012 — There was a z-index in order to keep the menu above the page text, because it was showing underneath.

I simply moved it from one place to another.

Bad:

#nav .menu ul {

position: absolute;

top: -999em;

width: 10em;

/* left offset of submenus need to match (see below) */

z-index: 99;

}

Good:

#nav .menu li.sfHover ul {

left: 0;

top: 40px;

/* match top ul list item height */

z-index: 99;

}
×

Success!

Help @SleeperInt spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...