How can I remove the empty space...

  • 59denisechapman
    Asked on March 24, 2025 at 3:49 PM

    Hi, I want the form on this page to line up with text in the box next to it.. I can't seem to remove the top space and I've tried multiple things suggested in your community forum: https://sshss.ca/new/make-a-donation/


    Thanks!

    Denise

  • Jonathan_Ma
    Replied on March 24, 2025 at 8:47 PM

    Hi Denise,

    Thanks for reaching out to Jotform Support. If I understand correctly, you want the form top aligned to the top of the text on the left side, in your website. Check the screenshot below:

    How can I remove the empty space Screenshot 40


    If that’s exactly what you’re looking for, I'll walk you through setting that up:

    1) First, copy this code:

    /* Push form to the top of the page */
    .jotform-form {
        margin-top: -45px;
    }


    2) Open the Form Designer by clicking on the blue paint roller like button on the right side.

    How can I remove the empty space Screenshot 51

    3) Click on Styles tab

    4) Paste the codes in the Inject Custom CSS box

    How can I remove the empty space Screenshot 62

    That's it. Give it a try and let us know if you need any more help.



  • 59denisechapman
    Replied on March 25, 2025 at 3:17 PM

    Ok that's fine for desktop but now when I look at mobile, the form is pulled up so high you can't see the top of it.

  • Kyle JotForm Support
    Replied on March 25, 2025 at 8:47 PM

    Hi Denise,

    Try using the custom CSS code below:

    /* Push form to the top for desktop */
    .jotform-form {
        margin-top: -45px;
    }

    /* Adjust for mobile devices */
    @media screen and (max-width: 768px) {
        .jotform-form {
            margin-top: 0px;
        }
    }

    Give it a try and let us know if you need any other help.

Your Answer