Subheader CSS Styling Issue on Live Form

  • craddock
    Asked on July 18, 2025 at 10:33 AM

    Hi, Jotform team- I needed to have a 2-line subheader on the form below, so searched for a solution in the Help Center, and found CSS that I could inject. I did this, and modified it so the two lines would display correctly. They are great in the form builder, but are super weird in the published version. Can you help me fix this?

    Form Builder version:

    Subheader CSS Styling Issue on Live Form Image 1 Screenshot 30

    Published version

    Subheader CSS Styling Issue on Live Form Image 2 Screenshot 41

    Thanks in advance!

  • Kyle JotForm Support
    Replied on July 18, 2025 at 11:01 AM

    Hi craddock, 

    You can easily remove the gray line above the Submit Button by Injecting CSS Codes into your form. Let me walk you through it:

    1. First, copy this code:

    .form-header-group .form-subHeader {
        max-width: 500px;
        margin: 0 auto;
        text-align: center;
        white-space: normal;
    }

    2. In Form Builder, click on the Paint Roller icon on the right side of the page to open Form Designer.

    3. Now, in the Form Designer menu, click on the Styles tab, scroll down and paste the code into the Inject CSS Code box. That’s it. The code is automatically saved.

    Subheader CSS Styling Issue on Live Form Image 1 Screenshot 30 Check out my screencast below to see the result: Subheader CSS Styling Issue on Live Form Image 2 Screenshot 41 Give it a try and let us know how it goes.

  • craddock
    Replied on July 18, 2025 at 11:08 AM

    Much better, thank you so much!!

Your Reply