How can I change the colour of a matrix ?

  • FRAPannuelle
    Asked on January 23, 2017 at 6:15 AM

    I would like to change the colour of the matrix but can't find how to do it in the design mode ? Can please someone help ?

  • Ashwin JotForm Support
    Replied on January 23, 2017 at 7:21 AM

    Hello FRAPannuelle,

    Which color you would like to change in matrix field? Please note that it is possible to customize the look of matrix field by injecting custom css code.

    To change the column header background & font color, please inject the following custom css code:

    .form-matrix-column-headers {

        background: #ddd; /*background color*/

        color: red; /*font color*/

    }

     

    To change the row header background & font color:

    .form-matrix-row-headers {

        background: #ddd;

        color: red;

    }

     

    To change the background color of martix other columns where the fields are displayed:

    .form-matrix-values {

        background: #f5f5f5;

    }

    The following guide should help you how to inject custom css code in form: https://www.jotform.com/help/117-How-to-Inject-Custom-CSS-Codes

    Hope this helps.

    Do get back to us if you want to change some other color of matrix and we will help you with the required css code.

    Thank you!