Link to home
Start Free TrialLog in
Avatar of sjsimpson2000
sjsimpson2000Flag for United States of America

asked on

Change Background Image with CSS using div.selected

Hi,

I have a menu (based on a menu from Dynamic Drive) where the background image of each menu item changes when the mouse hovers over it.  The problem I'm having is there are two types of menu items (with flyout and without flyout).  I have it working for the with flyout menu, but can't get the without flyout to work because there are multiple div styles applied.   I think I need to have 2 entries in the css: one for "with flyout selected" and one for "without flyout selected", but I can't figure out how to do it.

I've put a sample on JSFiddle here: https://jsfiddle.net/sjsimpson2000/gq71mpee/5/

Thanks!
ASKER CERTIFIED SOLUTION
Avatar of Duy Pham
Duy Pham
Flag of Viet Nam image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sjsimpson2000

ASKER

PERFECT!  Thank you!!