Topic: Select with option groups hover color?

SGalway pro asked 4 years ago

How do I change the option hover color in this example?

I need to make sure that the option group headings remain disabled with no hover effect. I have tried a few things in css with no success.



SGalway pro answered 4 years ago

Worked it out.

 .dropdown-content, .dropdown-content li:hover {
background-color: #4285f4;


I was using !important; which was over rideing the disabled state of the optgroup titles.

Please insert min. 20 characters.


Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.



Specification of the issue

  • User: Pro
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.8.7
  • Device: all
  • Browser: all
  • OS: all
  • Provided sample code: No
  • Provided link: Yes