I am trying to create an HTML table where I only want to select cells that are not part of the thead section and do not have a specific class. I am having trouble with the selector for this particular case.
table :not(thead):not(.cell-class) {
background-color: #FFFFFF;
}
+----------------+---------------+----------+----------+
| | | | | <-- <thead>
+----------------+---------------+----------+----------+
| .cell-class | x | x | x |
+----------------+---------------+----------+----------+
| .cell-class | x | x | x |
+----------------+---------------+----------+----------+
| .cell-class | .cell-class | x | x |
+----------------+---------------+----------+----------+
I am looking to only select the cells marked with x. Can anyone provide guidance on how to achieve this correctly?