/    Sign up×
Community /Pin to ProfileBookmark

Drop down list, off focus is that possible?

Hi,

I have a drop-down menu I have been working on which is all fine apart from a small issue.

[url]http://www.undertow.co.uk/misc/code/test.html[/url]

When I hover over a top level item the background turns light blue and the text turns blue. When I go into the next level the text i.e ‘Menu Item 1’ changes back to white and makes it impossible to see.

Any ideas on why this happens and how I could fix it?

Ideally I want it to stay it hover over state while I go down through the sub list (with the red arrow pointing down and the text blue etc)

For an example of what I want it do – the internet.com nav at the top of this site does it perfectly i.e. drop down and the top level highlights in red for example.

I had a look but can’t figure out how it works though.

Thanks for any help

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@CentauriMay 15.2008 — As the dropdown is a child of the <li>, you have to target the hover of the <li> instead of the <a> :[CODE][COLOR="Red"]#nav li:hover a, #nav li.sfhover a[/COLOR], #nav li a:active { color: #03c; background: url(images/icon_arrow_red_on.gif) no-repeat 5px 9px; }[/CODE]
Copy linkTweet thisAlerts:
@DisfunctionalauthorMay 15.2008 — Thank you so much, worked great ?
×

Success!

Help @Disfunctional 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 5.19,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

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

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...