Gravity Forms Space Between Fields in Collapsible Sections [RESOLVED]

I have several forms, all of which need more spacing between each field. However, I have forms separated into collapsible sections. I have tried several different versions of CSS code that have worked for other people, but in my case all it does is expand the space between the collapsible sections and does nothing to the fields inside those sections. Here’s a screenshot showing fields - there’s a red line where there needs to be more space.

Here’s some of the CSS I’ve tried that has not worked:

body .gform_wrapper label.gfield_label {
	margin-top:30px;
}



body .gform_wrapper .gform_body .gform_fields .gfield {
padding:30px 0 0 0;
}


.gform-theme--foundation .gform_fields {
  grid-row-gap: 20px !important;
}

Can any of you help me with altering this or finding some other solution to create some more space between these fields inside the collapsible sections?

Hi Ashley,

It could be that the CSS you are trying is getting overwritten by your theme or some other custom CSS.

Can you try marking the CSS as important to see if it works? If that doesn’t work, can you provide the link to your form so I can better assist?

body .gform_wrapper label.gfield_label {
	margin-top:30px !important;
}

Regards,
Sushil Kumar

Thanks. I tried that and unfortunately still can’t get it to work. The form is located here:
https://cpsgrantstream.com/rda-form-page/

However, it’s set up so that you have to be logged in to see it, so I don’t know if that’s helpful. I set up a test page with the same form embedded in it that is not behind a “wall” so to speak. This issue applies to all my forms. Here’s the page you can view:

https://cpsgrantstream.com/rda-form-test-page/

Hi Ashley. How about this CSS instead:

div.collapsible-sections-collapsible-body div.gfield,
div.collapsible-sections-collapsible-body fieldset.gfield {
  margin-bottom: 40px;
  background-color: palegreen; /* only so you can see where this is being applied */
}

Here is what it looks like when I apply that to your page here:

1 Like

That worked! Thank you!

1 Like