0

Is there a selector that looks a the content of table td and decides to apply backgoundcolor red, for instance, if the td contains "$-", i.e. a negative number being dataframe my table type, I tried

.dataframe td:contains("-") {
    background-color: red;
}

but it fails to work.

user3021543
  • 31
  • 1
  • 1
  • 2

0 Answers0