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 change CSS in Column 2

    Asked by lwright4481 on January 27, 2017 at 10:30 PM

    I am using a Configuration list. I have written the CSS for Column 1 to change each entry into the list as static, but now I don't know how to set it up for Column 2. Will you please show me the code for doing the same thing for column 2. 

    Screenshot
  • Profile Image
    JotForm Support

    Answered by EltonCris on January 28, 2017 at 06:30 AM

    You can add td tag after first-child.

    Example:

    tr+tr+tr >:first-child+td,

    tr+tr+tr+tr >:first-child+td{

    visibility:hidden;    

    }

    tr+tr+tr >:first-child+td :before {

        visibility: visible;

        content: "4-6";

    }

    tr+tr+tr+tr >:first-child+td :before {

        visibility: visible;

        content: "7-9";

    }

    ---

    By the way, the following should also work. I think this is already supported in all updated browsers.

    Instead of using the old fashioned way:

    tr+tr+tr >:first-child+td

    You can use:

    tbody:nth-child(3) >:first-child+td

    3 is basically the number of tr used

    Hope this helps!