• Skip to primary navigation
  • Skip to main content

GravityWP

The best information about Gravity Forms, GravityView, Gravity Flow and other addons

  • Tutorials
  • Forms
  • Views
  • Workflow
  • PDF
  • Perks
  • Show Search
Hide Search
Erik van Beek

Styling multiple columns List Gravity Forms

Erik van Beek · Oct 30, 2017 ·

When you have some kind of repetition in your form (every time the same block), for sure the Gravity Forms List field is best to use. But sometimes it’s difficult to fit everything in one single row. With a little CSS you can change that easily.

  1. Don't display the thead in the list
  2. Show column names below the list columns
  3. Style the columns in your list
  4. All the CSS used in this example
DEMO

Try it yourself (hit the +-sign)

  • 4 quarters CSS

  • Fill in a number
  • Gravity Forms - Radio Buttons / Checkbox Images

  • JetSloth - Image Choices

  • Gravity Forms - List

  • Column 1Column 2Column 3Column 4 
  • Gravity Forms - Survey - Stars (rating)

  • GravityWiz - Copy Fields

  • Copy Field

  • Just type something here ;-)
  • Copy Address

  • GravityWiz - Unique ID

  • ovann86 Dropdown List Field

  • Simple dropdownAdvanced dropdown 
    Just click on the '+' sign to add new rows with dropdowns.
  • ovann86 List Field Number

  • US notationEU notationValuta 
  • ovann86 List Field Date

  • Date Format dd/mm/yyyyDate dd-mm-yyyy with IconDefault Date Set yyyy/mm/dd 
  • ovann86 List Field Date

  • Upload 1Upload 2 
  • Slider

  • Perk Word Count

  • Minimal 2 and maximal 6 words.
  • Maximal 144 characters
  • Maximum 1000 characters (default option in GF)
  • GF Survery Ranking

    • First Choice
    • Second Choice
    • Third Choice
    • Fourth Choice
    • Fifth Choice
    • Happy
    • Crazy
    • Not happy
  • GF Survery Likert

  • Strongly disagreeDisagreeNeutralAgreeStrongly agree
  • Strongly disagreeDisagreeNeutralAgreeStrongly agree
    First row
    Second row
    Third row
    Fourth row
    Fifth row
  • Limit Dates

  • Date Format: DD slash MM slash YYYY
    Select your date between today and 1 month ahead. You can only select Tuesdays, Wednesdays and Thursdays in this period. That's what this plugin does, and more. For example you can set fixed dates, ranges from today, etc.
  • Merge tags gravity pdf

  • read-only-fields

  • bar-chart-gravity

  • Not required. We keep you updated about new versions if you fill in your e-mail address here.
  • Please enter a number from 1 to 99.99.
  • Percentage Sign

  • CSS List

    • Check if this is done;
    • Check if that is done;
    • And finally check if everything is done.
  • Gravity Forms Entries in Excel

Don't display the thead in the list

To do this, it’s first important to loose the thead of the list. It’s better to show the column names below the column (as in the example). To remove the thead:
#field_6_5 thead {
    display: none;
}

Show column names below the list columns

.gform_wrapper ul.gform_fields.form_sublabel_above table.gfield_list td::before, .gform_wrapper ul.gform_fields.form_sublabel_below table.gfield_list td::after {
  content: attr(data-label);
  font-size: 14px;
  letter-spacing: .5pt;
  white-space: nowrap;
  display: block;
  clear: both;
}

Style the columns in your list

.gfield_list_cell.gfield_list_2_cell1, .gfield_list_cell.gfield_list_2_cell2, .gfield_list_cell.gfield_list_2_cell3 {
    display: block;
    float: left;
}
 
.gfield_list_cell.gfield_list_2_cell4 {
    display: block;
    float: right;
}

All the CSS used in this example

#field_6_5 thead {
    display: none;
}

.gfield_list_cell.gfield_list_2_cell1, .gfield_list_cell.gfield_list_2_cell2, .gfield_list_cell.gfield_list_2_cell3 {
    display: block;
    float: left;
}
 
.gform_wrapper ul.gform_fields.form_sublabel_above table.gfield_list td::before, .gform_wrapper ul.gform_fields.form_sublabel_below table.gfield_list td::after {
  content: attr(data-label);
  font-size: 14px;
  letter-spacing: .5pt;
  white-space: nowrap;
  display: block;
  clear: both;
}

.gfield_list_cell.gfield_list_5_cell1 {
    width: 100%;
}

.gfield_list_cell.gfield_list_5_cell1, .gfield_list_cell.gfield_list_5_cell2, .gfield_list_cell.gfield_list_5_cell3, 
.gfield_list_cell.gfield_list_5_cell4 {
    display: block;
    float: left;
}

.gfield_list_cell.gfield_list_5_cell2, .gfield_list_cell.gfield_list_5_cell3, 
.gfield_list_cell.gfield_list_5_cell4 {
    width: 30% !important;
}

.gfield_list_cell.gfield_list_5_cell2, .gfield_list_cell.gfield_list_5_cell3 {
    margin-right:5% !important;
}

.gform_wrapper table.gfield_list td + td, .gform_wrapper table.gfield_list th + th {
    padding: 0 0 0 0 !important;
}

Gravity Forms List

© 2021 - This website is made possible by the wonderful services of
WordPress, GravityForms, GravityView, GravityWiz, Genesis Framework & WP Engine

  • About
  • Hire GF developers
  • Charts
  • Cheat Sheet