Below are some commonly requested styling changes that aren't currently included in the visual form styler settings or in the field options.
Upgrade your WordPress site with powerful, flexible forms.
Getting Started
Where to add custom CSS
Add custom CSS in Formidable → Global Settings → Custom CSS or in the form's custom CSS area. The page title is Settings. Click Update to save your changes.

To see the result, open the page with your form, or click Preview → On Blank Page in the form builder. Most themes also include a custom.css file or a place in the admin area to add custom CSS.
Tips for getting started
Each form has its own container ID, so you can style one form without changing other forms on your site. The ID looks like #frm_form_25_container, where 25 is the ID of your form. Find the form ID in the ID column on the Formidable → Forms page.
Each field also has its own container ID, so you can style one field without changing similar fields in your form. The ID looks like #frm_field_250_container, where 250 is the ID of your field. Find the field ID at the top of the field options in the form builder.
Find the right CSS class
Every Formidable form uses the same HTML wrappers and CSS classes. Use them to write CSS that changes only the part of the form you want, and to adapt the CSS examples below to your own form.
The example below shows a shortened version of the HTML for a form with the ID 25 and the form key contact. Its first field is a required Text field with the ID 250 and the field key name. Hidden inputs and most attributes are left out.
<div class="frm_forms with_frm_style frm_style_formidable-style" id="frm_form_25_container">
<form class="frm-show-form" id="form_contact">
<div class="frm_form_fields">
<fieldset>
<div class="frm_fields_container">
<div id="frm_field_250_container" class="frm_form_field form-field frm_required_field frm_top_container">
<label for="field_name" class="frm_primary_label">Name
<span class="frm_required">*</span>
</label>
<input type="text" id="field_name">
<div class="frm_description">Your full name</div>
</div>
<div id="frm_field_251_container" class="frm_form_field form-field">
<div class="frm_submit">
<button class="frm_button_submit frm_final_submit" type="submit">Submit</button>
</div>
</div>
</div>
</fieldset>
</div>
</form>
</div>This is how that field and the Submit button look on the page. The numbers show the parts with the classes in the HTML above: 1 is the field label (frm_primary_label), 2 is the required mark (frm_required), 3 is the field input (#field_name), 4 is the field description (frm_description), and 5 is the Submit button (frm_button_submit).
These are the classes and IDs you will use most:
| Part of the form | Class or ID |
|---|---|
| Container of one form | #frm_form_25_container (class frm_forms) |
| Every form that uses a style | with_frm_style, plus frm_style_ and the style's key, such as frm_style_formidable-style |
| The form element | #form_ and the form key, such as #form_contact |
| Container of one field | #frm_field_250_container (class frm_form_field) |
| Container of a required field | frm_required_field |
| Label position | frm_top_container. The class changes with the field's label position, such as frm_left_container. |
| Field label | frm_primary_label |
| Required mark | frm_required |
| Field input | #field_ and the field key, such as #field_name |
| Radio button and checkbox options | frm_opt_container holds the options. Each option is in a frm_radio or frm_checkbox div. |
| Field description | frm_description |
| Error message below a field | frm_error. The field container also gets the frm_blank_field class. |
| Error message at the top of the form | frm_error_style |
| Success message | frm_message |
| Submit button | frm_button_submit, inside a frm_submit div |
The error and success classes show only after someone submits the form.
The with_frm_style and frm_style_ classes show only when Enable Formidable styling is on for the form. To check it, open the form in the form builder and click the Style tab. Find the toggle at the top of the style list.
The field HTML comes from each field's Customize HTML box. If you changed that HTML, your field classes can be different.
To see the classes of any part of your form, open the form page in your browser, right-click that part, and choose Inspect. Learn more about how to inspect HTML in Chrome DevTools.
Style the labels, descriptions, and one field of a form
This example makes every label in form 25 bold and every field description italic. It also changes the border color of field 250 only. Replace 25 with the ID of your form and 250 with the ID of your field.
#frm_form_25_container .frm_primary_label {
font-weight: 700;
}
#frm_form_25_container .frm_description {
font-style: italic;
}
#frm_field_250_container input {
border-color: #1e73be;
}!important to many of its own CSS rules. Then CSS like the example above has no effect. Add !important to each line of your CSS, such as font-weight: 700 !important;.From Idea to Reality in Minutes. Build Powerful Forms, Dashboards, Apps and More.
Formidable Forms makes advanced site building simple. Launch forms, directories, dashboards, and custom WordPress apps faster than ever before.
Submit button
Replace the submit button with an image
To add an image to the submit button without CSS, use the built-in Upload Image option of the style. The button image option is a premium feature.
- Open your form in the form builder and click the Style tab.
- Click Edit style.
- Click Show advanced settings and open Buttons.
- Under Background, click Upload Image. The image shows behind the button text.
To replace the submit button with an image in CSS, use one of the two examples below. The example for one form works with the Formidable button styling on. It keeps the style's border and rounded corners around the image.
The example for all submit buttons has no effect while the button styling is on. To use it, first turn off the button styling in the style your form uses.
- Open your form in the form builder and click the Style tab. The style your form uses has the label (Applied).
- Click Edit style.
- Click Show advanced settings and open Buttons.
- At the bottom of Buttons, toggle on Disable submit button styling.
- Click Update. The button then has the browser's default look, and your CSS controls it.
In the examples below, replace path_to_image.png with the full URL of your image, such as https://example.com/wp-content/uploads/submit.png. A short path like path_to_image.png does not work, because the browser looks for it in the Formidable plugin folder. To get the full URL, go to Media → Library. Next, click the image. Then click Copy URL to clipboard.
The color:transparent; line hides the "Submit" text, so only the image shows on the button.
To style all submit buttons on your site:
.with_frm_style button[type="submit"] {
background:#f8f8f8 url('path_to_image.png') no-repeat right top;
width:200px;
height:70px;
color:transparent;
}To style only one submit button on your site, you use the form container div (replace 25 with the ID of your form):
#frm_form_25_container button[type="submit"] {
background:#f8f8f8 url('path_to_image.png') no-repeat right top;
width:200px;
height:70px;
color:transparent;
}Note: you will most likely need to adjust the width and height to the size of the image you are using for your submit button.
Additional note: to style forms that were created with a version earlier than 2.03, change button to input in both examples.
Use a floating submit button
Note: this may require additional custom javascript for variable screen widths for optimal appearance.
This will make it so the Submit button is visible at all times, and will scroll with the user.
Site-wide:
.frm_final_submit {
position: fixed !important;
right: 25px;
bottom: 20px;
}For a single form (replace 25 with the ID of the form):
#frm_form_25_container .frm_final_submit {
position: fixed !important;
right: 25px;
bottom: 20px;
}Repeaters
Limit rows in Repeatable Section
This example hides the Add button of a Repeater after 5 rows are added. Replace 376 with the ID of your Repeater field. Find the ID at the top of the Repeater field options in the form builder.
To allow a different number of rows, use 1 .frm_repeat_sec fewer than the number of rows you want to allow. The example has 4 and allows 5 rows.
#frm_field_376_container .frm_first_repeat + .frm_repeat_sec + .frm_repeat_sec + .frm_repeat_sec + .frm_repeat_sec .frm_add_form_row{
display:none;
}frm_repeat_sec class.Hide Repeater "Add/Remove" buttons
This example hides the Add and Remove buttons on every row of a Repeater, so visitors cannot add or remove rows.
#frm_field_13521_container .frm_repeat_buttons {
display: none;
}Replace 13521 with your Repeater field ID. Find the ID at the top of the Repeater field options in the form builder.
Hide Remove buttons on the first row in Repeatable Section
.frm_first_repeat .frm_remove_form_row.frm_button
{
display: none;
}Alternate Repeatable Section row color
Sometimes if you have a lot of rows in a Repeater, it can be hard to tell the rows apart. The following CSS will alternate the color of each row added in a Repeater.
Change 3424 to the ID of your Repeater field. Find the ID at the top of the Repeater field options in the form builder. You can also change the hex codes to a color of your choice.
.frm_repeat_3424:nth-child(odd) { background-color: #fff; }
.frm_repeat_3424:nth-child(even) { background-color: #efefef; }The first row gets the even color (#efefef in this example), because other elements come before the first row in the Repeater. To give the first row the other color, swap the 2 hex codes.
Sometimes, the Add/Remove Buttons do not fall in the background color. If that happens, you can add this line to increase the
padding around each row.
.frm_repeat_3424{ padding: 10px 0; }Multi-page forms
Increase Height of Progress Bar
This example will allow you to increase the height of a progress bar in a multi-page form. Change 53 to the ID of your Form, and change 50 to the desired progress bar height, as needed.
div#frm_form_53_container li.frm_rootline_single input {
height: 50px;
}Style the active page in View pagination
This example will allow you to style the background color of the active page in the pagination of a View.
.frm_pagination_cont ul.frm_pagination > li.active > a {
background: tan;
}Views
Set fixed height and scroll box for calendar View day content
By default, a calendar View will display all content entered in the View content, stretching the day box if the content is significantly long. Use the example below to scroll the day content instead of stretching it.
.frmcal-content {
max-height: 100px !important;
overflow: auto;
}Change the color of Zebra stripes styling for Table View
By default, using Zebra Stripes as your Table View Row style will display the table in alternating row colors. To change the alternate color, use the example below.
.frm-alt-table tr:nth-child(even) {
background-color: skyblue !important;
}Resize Checkbox and Radio Buttons
This example will allow you to enlarge the size of check and radio buttons in your forms. Note: There does appear to be a slight conflict with this working in Safari.
.with_frm_style input[type="checkbox"], .with_frm_style input[type="radio"] {
transform: scale(1.5) !important;
-webkit-transform: scale(1.5) !important;
-moz-transform: scale(1.5);
-ms-transform: scale(1.5);
-o-transform: scale(1.5);
padding-bottom: 5px !important;
}Add a background image to a form
Note: this is now a built-in feature of Formidable Pro.
By default there is no background for your forms, which allows your form to use the same styling as the rest of your site. To add an image for the background of your form, you would use something similar to this:
#frm_form_25_container {background:url(path_to_bg_image.png) repeat top left;}As always, remember to replace the 25 in our examples with the ID of your form.
Hide Address Field Line 2
If you prefer to only have a single street address line showing in your address field, use the following CSS. Change 12505 to the field ID of the address field.
div#frm_field_12505-line2_container {
display: none;
}Hide Form Validation Error Message
The following example allows you to hide the form validation error message box that shows up at the top of the page, but still allows for validation to pass. This means that the field that didn't pass validation will show the error underneath it. Change 28 to the form ID for your form.
div#frm_form_28_container div.frm_error_style {
display: none;
}This example allows you to hide the form validation error text that appears directly beneath the field. Change 123 to the field ID that you want to hide the error for.
div#frm_field_123_container div.frm_error {
display: none;
}Set label position below field input
This example will allow you to display the label position below the field input box. You can add a class (e.g. frm_bottom_labels) to the section fields that include fields where you want to reverse the labels. To reverse all labels in the form, add the class to the form.
.frm_bottom_labels .frm_form_field.form-field {
display: flex;
flex-direction: column-reverse;
}Optional: Since the label will be close to the input box, you can have a bit of separation between them by adding some margin. Change 5px to the amount you would like to use.
.with_frm_style .frm_bottom_labels label.frm_primary_label {
margin-top: 5px !important;
}CSS Layout class
Use custom color with frm_color_block
The frm_color_block class is based on the form field's border color by default. If you want to use a custom color, use the example below. Change the hex code #ba1212 with your preferred color.
.frm_color_block {
background-color: #ba1212;
}Change Google map size
If you prefer to change the size of the Google map displayed using the Geolocation add-on, the width and height can be customized using the example below.
.frm-geolocation-map {
height: 500px !important;
width: 500px !important;
}Conversational forms
Style the submit button on the last question
Use the custom CSS below if you want to style the submit button differently for a conversational form on the last question. In this example, CSS sets the submit button's background color to red. The frm_final_question class is only set when the conversational form is on the final question.
.frm-chat-wrapper.frm_final_question .frm_continue_chat {
background: red !important;
}