How do I add a rule to all .form-line except the .form-line containing .form-buttons-wrapper?

  • Profile Image
    Jon_Best
    Asked on April 27, 2015 at 02:05 AM

    If I want to add padding to all the .form-line except the form-line containing .form-buttons-wrapper, how would I do so?

    <div_prefs id="div_prefs">

  • Profile Image
    raul
    Answered on April 27, 2015 at 08:59 AM

    You can add the padding to the class .form-line and then remove it from the specific ID in which you don't want to apply it. You can see here: http://www.jotform.com/help/146-How-to-find-Field-IDs-Names how to find a specific field ID and name.

    If you need further assistance, please let us know and also share with us the form name or URL in which you want to do this.

  • Profile Image
    raul
    Answered on April 27, 2015 at 09:02 AM

    Forgot to include a brief example on how you could do this:

    .form-line {
        padding-top: 10px;
    }

    .form-buttons-wrapper {
        padding-top: -10px; //This will eliminate the padding applied above
    }