Avatar of sjsimpson2000
sjsimpson2000
Flag 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!
CSSHTML

Avatar of undefined
Last Comment
sjsimpson2000

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Duy Pham

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
sjsimpson2000

ASKER
PERFECT!  Thank you!!
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23