Using CSS Ready Classes In Gravity Forms

To add a Ready Class to a field, just edit your form in the Form Builder and then select the field you want to add the classes to. Under the “Appearance” tab, you’ll see an input called “CSS class name”. Add the Ready Class name or names you want to add to the field here and then save the form.

Readyclass_admin_input

Please note that this feature does NOT update live in the Form Builder. After you specify your Ready Class names, just save the form and you’ll see the classes being applied to your form in the preview window and on the live site.

The Ready Class Names

Here are the Ready Classes that are built in the Gravity Forms default stylesheet that you can use right away without having to write any of your own CSS.

Halves (2 Columns)

Note: These only work with the “top label” form layout option and are intended to be used in left half/right half pairings to work properly.

To align two fields side by side (2 equal columns) you can add these classes. The two fields have to be adjacent to each other in the Form Builder. The gf_left_half class has to be added to the first field and the gf_right_half class to the second field.

Readyclass_2column

Thirds (3 Columns)

Note: These only work with the “top label” form layout option and are intended to be used in left third/middle third/right third pairings to work properly.

To align three fields side by side (3 equal columns) you can add these classes. The three fields have to be adjacent to each other in the Form Builder. The gf_left_third class has to be added to the first field, the gf_middle_third class to the second field and the gf_right_third class to the third field.

Readyclass_3column

Quarters (4 Columns)

Note: These only work with the “top label” form layout option and are intended to be used in left third/middle third/right third pairings to work properly.

To align four fields side by side (4 equal columns) you can add these classes. The four fields have to be adjacent to each other in the Form Builder. The gf_first_quarter class has to be added to the first field, the gf_second_quarter class to the second field, the gf_third_quarter class to the third field, and the gf_fourth_quarter to the fourth field.

Inline (Fluid One Line)

Readyclass_gf_inline

List Classes

Readyclass_list_3column

Readyclass_list_inline

Horizontal Form Layout

Readyclass_scroll_text

Other Classes

Readyclass_scroll_text

Readyclass_scroll_text

Related