What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    How to apply colors to the column in the matrix field

    Asked by swapna_summit on December 02, 2014 at 10:33 AM

    Hi in my form the matrix shown in the image have to be understand as different columns as 1 and 2 

    inside a,b,c,d

    Here i would like to give pale colours that almost same for a and b and another pale color almost same for c and d 

    so that all the 4 columns shoul under the particular column headings . i injected css not worked

     

    Page URL:
    http://www.jotform.com//?formID=43352894287971

    Screenshot
    matrix colors matrix columns matrix field column colors
  • Profile Image
    JotForm Support

    Answered by EltonCris on December 02, 2014 at 11:50 AM

    Hi,

    Remove first the CSS codes you injected to your form for that particular matrix field and use the following.

    /*D*/

    #cid_682 .form-matrix-table tr td:nth-child(n+23) {

    background: #F2ACFD;

    }

    /*C*/

    #cid_682 .form-matrix-table tr td:nth-child(n+16) {

    background: #D360D3;

    }

    /*B*/

    #cid_682 .form-matrix-table tr td:nth-child(n+9) {

    background: #5656FF;

    }

    /*A*/

    #cid_682 .form-matrix-table tr td:nth-child(n+1) {

    background-color: #A3B2FF;

    }

    As you can see, I have labeled each code with their column names so you can easily identify which column is it for. Feel free to change the colors (bold text) to your preference.

    Result:

    Hope this helps. Thanks!