table.dataTable tr.odd not working for 1st column

table.dataTable tr.odd not working for 1st column

bbaranibbarani Posts: 32Questions: 0Answers: 0
edited November 2012 in General
Hi,

I am trying to change the color of rows in datatable using the below CSS.

table.dataTable tr.odd { background-color: #E2E4FF; }
table.dataTable tr.even { background-color: white; }

This change doesnt seem to affect first column in datatables, I can see the new color in other columns.

Can someone please let me know the reason for this issue?

Thanks
Barani

Replies

  • allanallan Posts: 63,534Questions: 1Answers: 10,475 Site admin
    Almost certainly this is due to the sorting class added to the cell ( `sorting_1` ) which you'd be able to see with Firebug / Inspector. You just need to remove that from the default CSS or modify the colours in the default CSS.

    Allan
This discussion has been closed.