Topic: in MDB5: how to change selected row color

soiware priority asked 1 year ago

I've loaded in my MDB5 html page. I need to migrate from MDB4 to MDB5 and mdb5.Datatable no longer supports main features and speed provided by, so I need to use How can I change the selected row color?It always appear in bg blue on white text and no effect if I apply this css code:

table.dataTable tbody tr.selected {
color: white;
background-color: #eeeeee;

I tried it with variations in order to test if element is not found by the query:

#tableID tbody tr.selected {
color: white;
background-color: #eeeeee;

I loaded the css file from the last line of html page.No changes: always blue bg on white text.

Kamila Pieńkowska staff answered 1 year ago

Check with developer tools what specific class list applies this style, copy it, and override the default style by adding !important to your style.

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

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 6.1.0
  • Device: Computer
  • Browser: All
  • OS: Mac and Windows
  • Provided sample code: No
  • Provided link: No