🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!
Guides & Tutorials October 20, 2026

Gravity Forms CSS Ready Classes: A Visual Guide to Layout Classes

GravityExtra
Gravity Forms CSS Ready Classes: A Visual Guide to Layout Classes

Gravity Forms has a quiet superpower that most people only find by accident: CSS classes. Add the right word to the Custom CSS Class setting of a field and it moves into a column, turns its checkboxes into a grid or becomes a coloured notice. The trouble is the text box. It gives you no list, no preview and no warning, so you end up searching documentation for the exact spelling and then guessing whether the class still works in your version.

This guide explains what the Gravity Forms CSS Ready Classes are, which ones are still a good idea, how to keep your own classes tidy, and how a visual picker removes the guesswork. It also shows how to build a few layout helpers yourself with small, safe CSS.

What Are CSS Ready Classes?

Ready Classes are class names that Gravity Forms already has styles for. You do not write any CSS: you type the name into the field, save the form, and the layout changes. The most common groups are:

  • Column classes such as gf_left_half and gf_right_half that put fields side by side.
  • List classes such as gf_list_2col that arrange checkbox and radio choices in equal columns.
  • Height classes such as gf_list_height_50 that give every choice the same height.
  • Alert classes such as gf_alert_green that turn an HTML field into a banner.
  • Single purpose helpers such as gf_hide_ampm, gf_hide_charleft, gf_scroll_text and gf_invisible.
The Gravity Forms form editor with the CSS classes picker open for a Checkboxes field: a search box, the switches Only classes for this field, Hide deprecated and legacy and Favourites only, the current value my-custom gf_list_2col, and cards with a mini preview, the class name, a description and an add button for each class
The picker for a Checkboxes field: search, filters, the current value and one card per class with a preview.

The Problem With a Plain Text Box

A text box is fine when you know what to type. In practice there are four recurring problems.

  1. You cannot see the options. There are more than thirty Ready Classes. Nobody remembers them all, so people copy a class from an old form and hope.
  2. You cannot see the result. Is gf_list_3col the one that fills across or the one that fills down? You find out after saving and loading the form.
  3. Classes conflict. A field cannot be in the left half and the right third at once, and a list cannot have two and three columns. Nothing stops you from typing both.
  4. The list changes. The column classes were deprecated in Gravity Forms 2.5, and Gravity Forms 3 shows a notice for nearly every Ready Class. Support for the legacy markup is planned to end with Gravity Forms 4.0.

Which Ready Classes Are Still Worth Using?

It helps to split the classes into two piles: the ones that still make sense and the ones that have a better replacement.

Group Classes Status in Gravity Forms
Width helpers gfield--width-half, gfield--width-third, gfield--width-quarter and the other widths the layout editor writes Current. Same classes the 2.5 layout editor uses.
Legacy columns gf_left_half, gf_right_half, thirds, quarters, gf_inline Deprecated in 2.5. Use field width in the form editor.
Choice lists gf_list_2col to gf_list_5col, the vertical versions, gf_list_inline Flagged as no longer necessary in 3.x, except the inline list.
List heights gf_list_height_25 to gf_list_height_150 Flagged as no longer necessary in 3.x.
Alerts gf_alert_green, red, yellow, gray, blue Flagged as no longer necessary in 3.x.
Other gf_scroll_text, gf_hide_ampm, gf_hide_charleft, gf_invisible Flagged as no longer necessary in 3.x.
Form-wide gf_simple_horizontal Deprecated in 2.6.

For side by side fields, use the form editor. Drag a field next to another one or set its width, and Gravity Forms writes the modern gfield--width classes for you. For everything else the old classes still work today, but if you build a new form it is wise to avoid the ones that Gravity Forms has flagged, because you will have to migrate them later.

The CSS classes picker searched for half: the legacy column classes gf_left_half and gf_right_half carry a Deprecated in Gravity Forms 2.5 badge and a Use instead box that points to the field width setting of the form editor
Deprecated classes are labelled and say what to use instead.

A Visual Picker Instead of a Memory Test

The GravityExtra CSS Ready Class Picker adds a Pick classes button above the Custom CSS Class box. It opens a window with every class, grouped, searchable and with a tiny preview of what it does. Each card has a plain description, a note when the class is deprecated, and the modern alternative.

  • Search. Type half, grid or hide and the list narrows down at once.
  • Only what fits. For a Checkboxes field you see choice lists and heights. For an HTML field you see the alert banners. Switch it off to see everything.
  • One click. Click to add a class, click again to remove it. Your own classes stay in place.
  • No conflicts. Adding a three column list removes the two column class for you.
  • Favourites. Star the classes you use all the time and show only those.

The same button appears in Form Settings next to CSS Class Name for classes that belong to the whole form, such as stacked buttons or a full-width submit button.

Layout Helpers You Can Build Yourself

If you like to understand what a class does, here is how a small helper is built. The card class gives a field a border, rounded corners and a soft shadow. The CSS is short, and it follows three rules that keep it from fighting your theme.

.gform_wrapper .gecrc-card {
  background: #fff;
  border: 1px solid #d9dde3;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .08);
  padding: 16px;
  box-sizing: border-box;
}
  • Scope it. The selector starts with the form wrapper and names the class, so it only touches fields that carry the class.
  • Keep the specificity low. A handful of class selectors, no IDs. Anyone can override it with one ordinary rule.
  • Skip !important. It makes later changes painful. If the Gravity Forms theme wins a property, raise the specificity a little instead.

The GravityExtra add-on ships twelve classes written this way and prints only the CSS of the classes a form actually uses.

The Extra Classes at a Glance

Class Use it on What it does
gecrc-highlight Any field Soft blue background with an accent bar on the left.
gecrc-card Any field White card with a thin border, rounded corners and a light shadow.
gecrc-compact Any field Tighter spacing between the label, the input and the description.
gecrc-grid-2 Checkboxes, radio buttons Choices in two columns; one column on phones.
gecrc-grid-3 Checkboxes, radio buttons Choices in three columns; two on tablets, one on phones.
gecrc-grid-4 Checkboxes, radio buttons Choices in four columns; two on tablets and phones.
gecrc-pills Checkboxes, radio buttons Each choice as a bordered, rounded block in a wrapping row.
gecrc-hidden-label Any field Hides the label visually and keeps it for screen readers.
gecrc-label-side Any field Label to the left of the input on wide screens, stacked on small ones.
gecrc-stack-buttons Form (CSS Class Name) Previous, Next and Submit buttons on top of each other, full width.
gecrc-full-submit Form (CSS Class Name) Submit button as wide as the form.
gecrc-center-buttons Form (CSS Class Name) Buttons centred under the form.
A form on the site that uses the extra GravityExtra classes: a highlight box, a card, choices in two and three column grids, choices as pills, a hidden label and two half-width fields on one row
The extra classes on a live form: boxes, choice grids, pills and half-width fields.

Choice Grids Without Surprises

Putting checkboxes in columns is the most common request. The old list classes work with the width of the container. The grid classes in the table use a CSS grid with equal columns and a gap, and they drop to fewer columns on small screens so the labels never get squeezed: three columns on a desktop become two on a tablet and one on a phone. If you want the choices to flow like tags instead, use the pills class, which gives each choice a border and lets them wrap.

Buttons and Footers

Form-wide classes go into the CSS Class Name setting of the form. gecrc-full-submit stretches the submit button to the width of the form, which looks right on narrow forms and on phones. gecrc-stack-buttons is made for multi-page forms: Previous, Next and Submit sit on top of each other and each fills the width. gecrc-center-buttons centres them. All three are one line of intent and a few lines of CSS, and none of them change the markup of the buttons.

Labels That Get Out of the Way

Two small classes cover most label requests. gecrc-hidden-label hides the label visually but leaves it in the page for screen readers, so the field stays accessible. Pair it with a placeholder for compact search or newsletter forms. gecrc-label-side shows the label to the left of the input on wide screens and stacks it again on small ones, which is handy for long settings-style forms.

Step by Step: Lay Out a Sign-up Form

  1. Add your fields in the form editor. Put First Name and Last Name next to each other by dragging, so Gravity Forms writes the width classes.
  2. Select the Checkboxes field that asks what a volunteer can bring. In the Appearance tab, click Pick classes, search grid and add gecrc-grid-3.
  3. Select the Notes field and add gecrc-card to set it apart.
  4. Select the HTML field that explains the rules and add gecrc-highlight.
  5. Open the form settings, click Pick classes next to CSS Class Name and add gecrc-full-submit.
  6. Preview the form on a desktop and on a phone, then publish.

Performance and Privacy

A class library can easily turn into a heavy stylesheet that loads on every page. The picker avoids that. The extra CSS is added only when a form that uses one of the classes is displayed, it is a few hundred bytes per class, and a form without the classes loads nothing. The picker itself exists only in the form editor and in the form settings, never on your public pages. Nothing is requested from other websites, and favourites are stored in your own user profile.

Checklist Before You Publish

  • Open the form on a phone. Check that columns collapse and the grids drop to one column.
  • Look for deprecated classes with the switch in the picker and plan their replacement.
  • Use the hidden label class only on fields that have a placeholder or a clear context.
  • Keep your own classes in the same box, separated by spaces. The picker leaves them alone.
  • If your theme overrides a layout, add a rule of your own after the add-on CSS. There is no !important to fight.

Frequently Asked Questions

Do CSS Ready Classes work in Gravity Forms 3?

The Ready Classes that exist today still work, but Gravity Forms 3 shows a notice for most of them and plans to remove the legacy markup support in version 4.0. For new forms, prefer the form editor layout tools and classes that do not depend on the legacy markup.

Where do I enter a CSS class for the whole form?

In the form settings, in the CSS Class Name field. The picker adds its button there too.

Can I combine several classes?

Yes, separate them with spaces. Classes from the same group exclude each other, so the picker replaces the old one when you add a new one from that group.

Does the picker slow down my site?

No. It loads only in the form editor and form settings. On the front end only the CSS of the classes a form uses is printed.

Do I need to know CSS?

No. Pick a class, save the form. If you want to write your own rules, the extra classes show how a clean, low-specificity rule is built.

Pick Gravity Forms CSS Classes Visually

Search every Ready Class with a preview, see which ones are deprecated and add extra layout classes that load only where they are used.

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr