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:

  • Profile Image
    JotForm Support

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


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


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

    background: #F2ACFD;



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

    background: #D360D3;



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

    background: #5656FF;



    #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.


    Hope this helps. Thanks!