Gap between fields in Form Block

If you want to adjust gap between fields in Form Block, you can use these CSS code to Website Tools > Custom CSS.

#1. All Form Blocks

div.form-block .form-wrapper div.form-item.field {
    margin-bottom: 0px !important;
}

#2. All Form Blocks (Desktop Only)

@media screen and (min-width:768px) {
div.form-block .form-wrapper div.form-item.field {
    margin-bottom: 0px !important;
}}

#3. All Form Blocks (Mobile Only)

@media screen and (max-width:767px) {
div.form-block .form-wrapper div.form-item.field {
    margin-bottom: 0px !important;
}}

#4. Specific Form Block

First, you need to find Form Block ID. Use this tool.

  • #block-yui_3_17_2_1_1723417893645_6471

Next, use this CSS code

#block-yui_3_17_2_1_1723417893645_6471 .form-wrapper div.form-item.field {
    margin-bottom: 0px !important;
}