DataTables / FixedHeader

Fix the header, footer, left or right columns of a table in place, to always show them when scrolling
http://www.datatables.net/
Other
75 stars 83 forks source link

fixedHeader css #56

Closed bolemeus closed 9 years ago

bolemeus commented 9 years ago

In the fixedHeader css the following rule is applied to the fixed header.

div.FixedHeader_Cloned th,
div.FixedHeader_Cloned td {
    background-color: white !important;
}

I get that the background should be set, but enforcing the color white with the !important modifier prevents the application of another background color, unless you reorder the list of css files, and apply the !important modifier to your own rule as well, and that really shouldn't be necessary.

Maybe I'm missing the reason here behind the !important modifier, but I've removed it for my usecase (column highlighting + fixedHeader), and it works fine. For other usecases (ie. tables in different colors) thesame problem arises.

DataTables commented 9 years ago

Already done on the 3 branch. I'll be merging that down to master as soon as I've written the documentation for the new version.