- For individual users
- Instant access to solutions
- Ask your tech questions
- Start your 30-day Free Trial
Main Topics
Browse All TopicsHi,
I am having some problems styling a menucontrol in ASP.NET.
The problem I am having is trying to style the HOVER on a SELECTED item.
It does not appear to pick up the HOVER when a selected item is rolled over.
For example....
When the item is NOT selected the hover works correctly (see image hover.jgp) The item being hovered over is dark green (Teal) and a normal node is the light green (#EEF7F7).
Ok, if you see the screen shot "selected.jpg" that is what a menu item appears like once it has been selected. - Gray background and black text is the selected item.
Now, when I hover over the selected item it does not pick up the style (it should be the Teal dark green colour like the other) but the background stays at the selected style gray colour. How ever the text colour does change to white correctly. (See currenthover.jpg)
Can anyone help me resolve this?
So to reiterate, what i am try to achieve is for the hover to be the same whether the item is selected or not!! The hover properties are for the text to be color: #FFFFFF and the background to be teal.
As I say the hover does not work correclty on a selected item.
Below is the CSS code the source code, and some shots of how it looks.
I have tried all kinds but I am well and truly stumpted as to why the hover doesnt work on the selected item.
Also on the same topic, how would I place an image onto an item is selected. I have created a photoshop image of this below (see hoverarrow.jpg)
Any suggestions will be greatly appriciated!!!
Thanks.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: Juan_BarreraPosted on 2009-02-03 at 15:34:15ID: 23543565
Hi there,
EF7F7"
way to troubleshoot:
I think that what's happening is that these styles are overriding your desired result:
.menu-selected a:link
{
color:black;
}
BackColor="#E
Best
Remove all the styles and add them one by one, to see exactly what is doing what.