Topic: DataTables.net in MDB5: how to change selected row color

soiware priority asked 1 week ago


I've loaded datatables.net 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 datatables.net, so I need to use datatables.net. 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.


kpienkowska staff answered 1 week 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.

FREE CONSULTATION

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

Status

Answered

Specification of the issue

  • User: 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