Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 81923

Set background color of column

$
0
0

I would like to change the background color of columns that are editable, but when I do this using the classname, it also changes the background color of that column's header, which I don't want. Is there a way to highlight the td cells but not the th? This is how I currently have it:

DT column
{ "data": "UserFlag", "className": "table-cell-edit" }

CSS
.table-cell-edit{
    background-color: lightgoldenrodyellow;
}

Viewing all articles
Browse latest Browse all 81923

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>