erwin
erwin

Reputation: 109

Change background color in Bootstrap 5 multi level dropdown menu

anyone tried to changed the background color in multi-dropdown menu in bootstrap 5? the original code is here https://bootstrap-menu.com/demos/multilevel.html

I want to change the background color in visited/active in multi level the code below doesn't work

.dropdown-menu>.active>a, 
.dropdown-menu>.active>a:visited, 
.dropdown menu>.active>a:hover,  
.dropdown-menu>.active>a:focus { 
background-color: #222222!important;  
}

Sample

Upvotes: 1

Views: 623

Answers (1)

Patel Harsh
Patel Harsh

Reputation: 144

By default bootstrap provide class to change dropdown menu color to dark by aading class ".dropdown-menu-dark" to dropdown-menu.

Hope that work for you

Upvotes: 1

Related Questions