• Join the Best Wordpress and Elementor Support forum

    Provide or get advice on everything Elementor and Wordpress, ask questions, gain confirmation or just become apart of a friendly, like minded community who love Wordpress and Elementor


    Join us!

Change background color when hover sub menu

White_Wanderer

White_Wanderer

New Member
Hi all,

How can I change the background color of sub menu when hover on it?
Currently its black.

I could not find the correct css to achieve this.

1580573440960.png


This is my css to change the background color when not in hover:
.dropdown-menu ul li a.menu-link {
color: #f0d8b6 !important;
background-color: #ffffff;
}

How to change the background color on hover?

link: foxandme.my

Thank you!
 
sms-design

sms-design

Member
Try the following in your custom css or child theme

.dropdown-menu ul li a.menu-link:hover {
background-color: #f0d8b6;
color: #000 !important;
}
 
White_Wanderer

White_Wanderer

New Member
Try the following in your custom css or child theme

.dropdown-menu ul li a.menu-link:hover {
background-color: #f0d8b6;
color: #000 !important;
}

Awesome!
I forgot to put !important just now. Thanks sms-design!
 

Latest Resources

Other Elementor Resources

elementor official

Still stuck? Ask the forum

Post your question with a screenshot and a link if you can, and a member will usually reply within a day. Free to join, no sales pitch.

Create a free account
Top