How can I change the selected colour?

How can I change the selected colour?

AmbientAmbient Posts: 23Questions: 9Answers: 0

I have tried this is the datatablesmin.css but it doesn't seem to be working.

tr.selected{background-color:#d4d1f0}

This question has an accepted answers - jump to answer

Answers

  • silkspinsilkspin Posts: 152Questions: 34Answers: 5
    Answer ✓

    I wouldn't edit core CSS files. It would be better to create an override.css and load it last. If you put this code in your new css file it should work.

    tbody>tr.selected {background-color:#d4d1f0;}
    

    Try with !important appended if you can't get the correct specificity.

This discussion has been closed.