keep the same bgcolor to fixed columns

keep the same bgcolor to fixed columns

salcidoprcsalcidoprc Posts: 3Questions: 1Answers: 0

Hi, I have a table with different row colors depend on the information they have, but when I fix a column the bgcolor they have is white and not the same as the row, hoy can I fix this?

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,237Questions: 1Answers: 2,598

    Hi @salcidoprc ,

    We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

  • salcidoprcsalcidoprc Posts: 3Questions: 1Answers: 0
    edited October 2019

    here is the sample http://live.datatables.net/dezujeri/1 ignore the bad align on the headers, the thing I want to fix is the back ground color for the fixed columns, on Tiger Nixon I use a background color red but on the fixed colum didnt show the color

  • colincolin Posts: 15,237Questions: 1Answers: 2,598
    Answer ✓

    You're using the same id multiple times - each id should be unique. For this, use class, see "color1" in your modified example here: http://live.datatables.net/dezujeri/3/edit

  • salcidoprcsalcidoprc Posts: 3Questions: 1Answers: 0

    Thanks, that worked great!!!

This discussion has been closed.