Formidable Forms

Formidable Forms

  • Features
  • Pricing
  • Resources
    • Docs & Support
    • Blog
    • Community
  • Solutions
    • Web Applications
    • Calculators
    • Surveys
    • Directories
    • Payments
    • Contact forms
  • Login
  • Get Formidable Forms

Form layout and CSS classes

Last Updated: November 16, 2021

Knowledge Base → Styles → Form layout and CSS classes

The easiest way to place multiple fields in a row and design the layout of your form is to use the many CSS layout classes offered by Formidable. You can add these CSS layout classes to individual fields or add them to Section Headings to organize large groups of fields.

Formidable Forms is the best WordPress Form Builder plugin. Get it for free!

Add a CSS layout class

  1. Go to edit your form.
  2. Click on any field and open the Field Options → Advanced section in the left sidebar.
  3. Click the menu icon in the CSS layout classes box.
    CSS Layout Classes Box for form layout
    When you click the menu icon in the right side of the box, the Add Layout Classes settings will be shown below it. This gives you a complete, clickable list of all the layout classes which you may use.
    CSS Layout Sidebar
  4. Click any of the classes in the Add Layout Classes settings to insert them into the CSS layout classes box.
    CSS Add Layout ClassCSS Add Layout Classes 

     

    You can use multiple classes by inserting a space between each class. Example: 'frm_first frm_half'

Example

Here's an example of the output you can achieve with adding classes.
CSS Layout Classes

Add columns in a form

Creating columns in a form is as easy as adding a CSS layout class to your fields.

  1. Add fields to your form. Alternate between adding a field for the first column and a field for the second column. Every other field will be in a different column, so order your fields with that in mind.
  2. Open the field options for each field that should be in the first column. Click the menu icon in the CSS layout classes box. In the Add Layout Classes settings (left sidebar), click the First style class and the 1/2 button. This will insert the frm_first frm_half classes.
  3. Open the field options for each field that should be in the second column. Click the menu icon in the CSS layout classes box. In the Add Layout Classes settings (left sidebar), click the 1/2 button. This will insert the frm_half class.
    CSS Layout 2 Columns

Section heading columns

— Premium Feature —

Using Section Headings can be a much faster way of creating a two column form because you only need to add classes to the Section Heading fields instead of adding them to every field in the column.

  1. Add a Section Heading field to your form. This will be for your first column. Open the field options and click the menu icon in the CSS layout classes box. In the Add Layout Classes settings (left sidebar), click the First style class and the 1/2 button. This will insert the frm_first frm_half classes.
  2. Add another Section Heading field to your form. This will be for your second column. Open the field options and click the menu icon in the CSS layout classes box. In the Add Layout Classes settings (left sidebar), click the 1/2 button. This will insert the frm_half class.
  3. Add fields that you want in the first column to the first Section field.
  4. Add fields that you want in the second column to the second Section field.
  5. If you don't want the Section Heading text to be shown in your form, set the Label Position to hidden or none on both of your Section Headings.
    CSS Layout two column form layout

Align two fields in a row

  1. Open the first field's options and click the menu icon in the CSS layout classes box. The Add Layout Classes settings will be automatically shown below it. Click the First style class and the 1/2 button. This will insert frm_first frm_half in the CSS layout classes box.
  2. Open the second field's options and click the menu icon in the CSS layout classes box. The Add Layout Classes settings will be automatically shown below it. Click the 1/2 button. This will insert frm_half in the CSS layout classes box.
    CSS Layout 2 Column frm_half

Align three fields in a row

  1. Open the first field's options and click the menu icon in the CSS layout classes box. The Add Layout Classes settings will be automatically shown below it. Click the First style class and the 1/3 button. This will insert frm_first frm_third in the CSS layout classes box.
  2. Open the second field's options and click the menu icon in the CSS layout classes box. The Add Layout Classes settings will be automatically shown below it. Click the 1/3 button. This will insert frm_third in the CSS layout classes box.
  3. Open the third field's options and click the menu icon the CSS layout classes box. The Add Layout Classes settings will be automatically shown below it. Click the 1/3 button. This will insert frm_third in the CSS layout classes box.
    CSS Layout 3 Column

Align four fields in a row

  1. Open the first field's options and click the menu icon in the CSS layout classes box. The Add Layout Classes settings will be automatically shown below it. Click the First style class and the 1/4 button. This will insert frm_first frm_fourth in the CSS layout classes box.
  2. Open the second, third, and fourth field's options and click the menu icon in the CSS layout classes box. The Add Layout Classes settings will be automatically shown below it. Click the 1/4 button. This will insert frm_fourth in the CSS layout classes box.
    CSS Layout 4 Column

Align submit button with fields

Note: This is now a built-in feature of Formidable Forms Pro.
If you want to put your submit button inline with the fields in your form, follow the instructions below. These instructions are specific to having two fields in your form, but they can be adapted to work with any number of fields.

  1. Open the first field's options and click the menu icon in the CSS layout classes box. The Add Layout Classes settings will be automatically shown below it. Click the First style class and the 1/3 button. This will insert frm_first frm_third in the CSS layout classes box.
  2. Open the second field's options and click the menu icon in the CSS layout classes box. The Add Layout Classes settings will be automatically shown below it. Click the 1/3 button. This will insert frm_third in the CSS layout classes box.
  3. Go into your form's Settings → Customize HTML. Scroll down to the Submit Button section.
    Replace <div class="frm_submit"> with <div class="frm_submit frm_third frm_inline_submit">.
    CSS Layout Align Submit

Create a grid

Create a grid with your radio button or checkbox fields by following the instructions below.

  1. Open the first radio button or checkbox field's options and click the menu icon in the CSS layout classes box. The Add Layout Classes settings will be automatically shown below it. Click the First Grid Row style class. This will insert frm_grid_first in the CSS layout classes box.
  2. Open the second radio button or checkbox field's options and click the menu icon in the CSS layout classes box. The Add Layout Classes settings will be automatically shown below it. Click the Even Grid Row style class. This will insert frm_grid in the CSS layout classes box. Do the same for all other even numbered radio buttons/checkboxes.
  3. Open the third radio button or checkbox field's options and click the menu icon in the CSS layout classes box. The Add Layout Classes settings will be automatically shown below it. Click the Odd Grid Row style class. This will insert frm_grid_odd in the CSS layout classes box. Do the same for all other odd numbered radio buttons/checkboxes.CSS Layout Create Grid
  4. If you would like to add labels at the top of your grid, you will need some extra HTML and CSS. You may follow these instructions to add labels to your grid.

Available Form classes

frm_first

Use 'frm_first' whenever you want a field to be the first in a row. This is designed to be used in conjunction with the field width classes.

frm_half

Align two fields in a row with 'frm_first frm_half' on the first field and 'frm_half' on the second field.

frm_third

Align three fields in a row. Use 'frm_first frm_third' for the first field and use 'frm_third' for the second and third fields.

frm_two_thirds

Use next to a field with the 'frm_third' class on it. If you would like two fields in a row where the first takes up two-thirds width and the second takes up one-third width, put 'frm_first frm_two_thirds' on the first field and 'frm_third' on the second field.

frm_fourth

Align four fields in a row. Use 'frm_first frm_fourth' for the first field. Add 'frm_fourth' to the following fields in the row.

frm_three_fourths

Use next to a field with the 'frm_fourth' class on it. If you would like two fields in a row where the first takes up three fourths width and the second takes upon one fourth width, put 'frm_first frm_three_fourths' on the first field and 'frm_fourth' on the second field.

frm_sixth

Align six fields in a row. Use 'frm_first frm_sixth' for the first field. Use 'frm_sixth' for the following fields in the row.

frm_alignright

Align a field to the right side of the page.

frm_inline

Align fields in a row without setting a specific width. Use 'frm_first frm_inline' for the first field in the row and use 'frm_inline' for any fields following that.
CSS Layout Inline frm_inline

frm_full

Force the field to fill the full space with 100% width.

frm_full_upload

Make a Single File Upload field look like a Multi File Upload field.
CSS Layout Full File Upload frm_full_upload

frm_grid_first, frm_grid, frm_grid_odd

Create a table of fields with alternating colors. Use 'frm_grid_first' for the first field in the grid, 'frm_grid' on the even numbered rows, and 'frm_grid_odd' on the odd numbered rows.

frm_two_col, frm_three_col, frm_four_col

Put your radio button or checkbox options into two, three, or four columns.

frm_total

Add this to a read-only field to display the text in bold without a border or background.

frm_total_big

Add this to a read-only field to display the text in large, bold text without a border or background.
CSS Layout frm_total_big

frm_color_block

Add a background color to the field or section.
CSS Layout frm_color_block

frm_scroll_box

If you have many checkbox or radio button options, use the frm_scroll_box class to allow your user to easily scroll through the options. Add this to an HTML field to allow your user to easily scroll through text.

frm_capitalize

Add this to automatically capitalize the first letter in each word. Please note that this will not affect the saved value. It will only affect how the value is displayed in the field.
CSS Layout Capitalize frm_capitalize

frm_hidden

Add this to hide fields that you do not want visible, but are not Hidden fields. Examples could include fields used in calculations but that you might not want visible for aesthetic reasons, or certain uses of Lookup fields.

frm_inline_submit

Use this class to make sure your inline submit button lines up with the fields in your form.

frm_inline_form

Use this class to make form content work better with inlining. It gets added automatically if you use frm_inline_submit.

frm_label_justify

Use this class to increase the space between words in a field label so that each line has equal width.
CSS Layout Label Justify frm_label_justify

frm_pos_center

Add this class to an HTML field to horizontally center a text.
CSS Layout Label HTML Center frm_pos_center

Available View classes

frm_round

Use this class to create rounded images. This will create circles for square images or ovals for rectangular images.

<img class="frm_round" src="..." />

If you're using a file upload field to display images, you can style the image display by adding the frm_round class.

[x show_image=1 class="frm_round"]

CSS Layout frm_round

frm_square

Use this class to create square images.

<img class="frm_square" src="..." />

If you're using a file upload field to display images, you can style the image display by adding the frm_square class.

[x show_image=1 class="frm_square"]

CSS Layout frm_square

frm_small, frm_smaller, frm_bigger

Use this class to change the size of the font to small, smaller or bigger.

frm_plain_list

Add this class to remove bullets in an unordered list.

<ul class="frm_plain_list">

frm_inline_list

Add this class to set the unordered list to a row.

<ul class="frm_inline_list">

frm_full_row

Add this class to set the row to span the full page.

<ul class="frm_full_row">

frm_flex

Display the View as flex. It will set the flexible length on flexible items.

<div class="frm_flex">
<div style="flex:1">Sidebar</div>
<div style="flex:3">Content area</div>
</div>

frm_tiles

Use this class to create a tile layout.

<div class="frm_tiles">
<div>This is a tile</div>
</div>

frm_no_grid_750

Add this class to create a responsive View. It will stop showing grid items side by side at 700px screen.

frm_no_grid_600

Add this class to create a responsive View. It will stop showing grid items side by side at 600px screen.

Create natural language forms

Natural language forms go by several names including Mad Libs style forms. These types of forms include form fields inside of a sentence. They often use styling that shows only a blank line rather than a text box, similar to the available Mad Libs Lines style template.

Natural language madlib form
To create a form like this, follow these steps.

  1. Add a section field to your form for each sentence or block of text. Set the label position to none.
  2. Alternate HTML fields with other field types inside the section. The HTML fields are for the text between the other fields. Set the label position on each field to either placeholder or hidden.
  3. If there are any fields followed by a period or comma, add no-right-margin into the CSS layout classes box for that field.
  4. Go to the Settings → Customize HTML and add 'frm_madlib' into the Form Classes box.
  5. Go to the Formidable → Styles → Custom CSS page and add this css:
    .frm_madlib .frm_section_heading {
    display:flex;
    flex-wrap: wrap;
    align-items: flex-end;
    }
    
    .frm_madlib .frm_section_heading div {
    margin: 5px;
    }
    
    .frm_madlib .frm_section_heading div.no-right-margin {
    margin-right: 0px;
    }
  6. Create a new style or import the Mad libs line style template. See how to only show the bottom border in a field.
  7. You're all done. Your form should look like the form in the screenshot above.

Create custom mobile-friendly form

All forms created with Formidable Forms are mobile-friendly and responsive. By default, the fields will be displayed in a single column on mobile. If you want to customize how many fields will be shown per row, you can follow the steps below.

  1. Install and activate the Bootstrap styling add-on. This add-on is included in the Formidable Plus plan and higher.
  2. Go to your Formidable → Styles → Custom CSS page and add this:
    .frm_fields_container {
        display: block !important;
    }
    .with_frm_style .frm_form_field {
        clear: none;
    }
  3. Add three fields to your form. Insert col-xs-4 as the CSS layout class for each field.
  4. If you view your form on a mobile device, you should see three columns even on small screens.
    CSS Layout Mobile Response Form
  5. Learn more about the other Bootstrap layout options available.
    • col-xs-6: Display two fields side by side.
    • col-xs-6 col-md-4: Display three fields side by side on bigger screens, and two fields side by side on smaller screens.

Create an inline form

Subscribe on YouTube

If you want to customize your form layout and create an inline form where all the fields are aligned in a row, follow the steps below.

  1. Create a new form or edit an existing one.
  2. Add the fields where you want to apply the inline formatting. In this example, we will add a Name field and Email field. By default, these fields are stacked.
    CSS Layout - Inline Form Stacked fields
  3. Use our drag-and-drop layout builder to move the fields in a row.
    CSS Layout - Inline Form fields
  4. To make room for the submit button in the 12-column grid, hover over the row and click the Layout icon right above the row.
    CSS Layout - Inline Form Layout Icon
  5. Click Custom Layout and change the value to 6 and 3. Alternatively, you can use the CSS Layout Classes box to add frm_first frm6 for the Name field and frm3 for the Email field.
    CSS Layout - Inline Form Custom Layout
  6. Go to your form Settings → Buttons page. Find Submit Button Position and choose Inline from the dropdown options.
    CSS Layout - Inline Form Submit Button Position
  7. To line up the submit button to the form fields, go to form Style page. Click the New Style button and create a new style called Inline Style.
    CSS Layout - Inline Form Style
  8. Look for the Button section and change the padding to 6px 20px. Click the Update button to save.
    CSS Layout - Inline Form Style Padding
  9. Go back to the form Style page. Select lnline Style and click the Apply link.
  10. CSS Layout - Inline Form Manage Style

  11. You're all done! Your inline form should look like this.
    CSS Layout - Inline Form

More layout customization

Users familiar with HTML can further customize the form layout by using the Customize HTML tab on the form settings page.

Related Articles

  • How to make a multiple column form in WordPress How to Make a Multiple Column Form in WordPress
    Read More
  • Add a CSS layout class
    • Example
  • Add columns in a form
    • Section heading columns
  • Align two fields in a row
  • Align three fields in a row
  • Align four fields in a row
  • Align submit button with fields
  • Create a grid
  • Available Form classes
    • frm_first
    • frm_half
    • frm_third
    • frm_two_thirds
    • frm_fourth
    • frm_three_fourths
    • frm_sixth
    • frm_alignright
    • frm_inline
    • frm_full
    • frm_full_upload
    • frm_grid_first, frm_grid, frm_grid_odd
    • frm_two_col, frm_three_col, frm_four_col
    • frm_total
    • frm_total_big
    • frm_color_block
    • frm_scroll_box
    • frm_capitalize
    • frm_hidden
    • frm_inline_submit
    • frm_inline_form
    • frm_label_justify
    • frm_pos_center
  • Available View classes
    • frm_round
    • frm_square
    • frm_small, frm_smaller, frm_bigger
    • frm_plain_list
    • frm_inline_list
    • frm_full_row
    • frm_flex
    • frm_tiles
    • frm_no_grid_750
    • frm_no_grid_600
  • Create natural language forms
  • Create custom mobile-friendly form
  • Create an inline form
  • More layout customization
  • Related Articles
Categories
×

Categories

  • Installation & Getting Started
  • Account Management
  • Forms
  • Entries
  • Views
  • Styles
  • Importing & Exporting
  • Add-Ons
  • Extend Formidable Forms

Using WordPress and want to get Formidable Forms for free?

Get Formidable Forms Lite Now

This article may contain affiliate links. Once in a while, we earn commissions from those links. But we only recommend products we like, with or without commissions.

Take on bigger projects Right Now

Get the tools you need to revolutionize your workflow and architect a masterpiece. Build the most advanced WordPress forms and actually use the data you collect in meaningful ways.

Get the most advanced WordPress form plugin and the only form builder with integrated Views.

Get Formidable Forms Now

Resources

  • Community
  • Affiliates
  • Contact
  • Free Online Form Builder

Top Features

  • Application Builder
  • Calculator Forms
  • Surveys & Polls
  • Quiz Maker
  • Form Templates
  • Application Templates
  • Directories
  • Donation Plugin

Company

  • About Us
  • Giving Back
  • Careers
  • Newsletter
  • WP Tasty
  • Nutrifox

Copyright © 2023 Strategy11, LLC. Formidable Forms® is a registered trademark Strategy11, LLC.
Privacy Policy | Terms of Service | Sitemap

Join 300,000+ using Formidable Forms to create form-focused solutions fast. Get Started See User Reviews