CSS: Table Column Color

  • 1
  • Question
  • Updated 4 years ago
  • Answered
I have alternating color table rows, but I'd like the first column to be gray.  Is this possible?
Photo of Scott

Scott

  • 2,722 Points 2k badge 2x thumb

Posted 4 years ago

  • 1
Photo of J.

J., Official Rep

  • 7,470 Points 5k badge 2x thumb
Scott,

This is possible by overriding our CSS. Try adding the following as an inline CSS resource on a page where you want this behavior:
table.nx-skootable-data tbody tr td:nth-child(3) {
    background-color: #f8f8f8;
}
I'm assuming that the "first" column is actually the column after your row actions, but if this isn't the case, just change the "3" to whatever you need it to be.
Photo of Scott

Scott

  • 2,722 Points 2k badge 2x thumb
this works great... thanks so much J!!