How to add different back ground colors in the matrix table ?

  • SumSolTrain
    Asked on July 22, 2014 at 3:59 AM

    I have to add these for only two matrix table in my form and not every table.

    Jotform Thread 406580 Screenshot
  • omer Jotform Support
    Replied on July 22, 2014 at 4:31 AM

    Hi swapna_summit,

    Can you write the lines below into the Inject CSS box?

     

    #cid_23 .form-matrix-table tr td { background-color: #d6e3bc; }

    #cid_23 .form-matrix-table tr td:nth-child(-n+13) { background-color: #eaf1dd; }

    #cid_23 .form-matrix-table tr td:nth-child(-n+9) { background-color: #c6d9f1; }

    #cid_23 .form-matrix-table tr td:nth-child(-n+5) { background-color: #daeef3; }

     

    If you have any further help, please let me know.

    Have a good day.

  • SumSolTrain
    Replied on July 22, 2014 at 5:41 AM
    Hi

    I have injected this css code ,but the matrix didn’t updated ???

    Thanks.

    ...
  • SumSolTrain
    Replied on July 22, 2014 at 6:11 AM
    Hi


    Thanks it worked now

    ...