CSS forms are beautiful no doubt, and if you fit into any of these categories:

  • You feel restricted by the styling of the form fields that your respondents get to see.
  • You wonder if it is possible to give it a styling of your choice.

  • You want to change the height or width of a text input type with custom CSS.

Then you’re in luck because we’ll be sharing some tricks to help you create beautiful CSS forms.

But there’s a gotcha! You need to have some knowledge of CSS. You don’t want to start working on a form and midway, you don’t know what selectors to use. Learn a lot about CSS from css-tricks.

If you’d rather not have to edit CSS code, check out our guide on how to style your forms without CSS.

In order to style a form field in Formplus, you will need to inspect the field using your browser’s developer tools. On each input type, you’ll find an ID with a value like this - fp-numberstring. To see this, load the form as though you intend to fill it. Right-click on any form field you intend to style, and click ‘Inspect’. You should see something in the form of this id =”fp-1234567890”.

Styling-form-fields-with-css-formplus-forms

To upload your custom CSS, head over to the Customise page of the Builder; check for the custom CSS tab, and then upload your custom CSS. For the purpose of this tutorial, our form field ID is fp-1550487293722,

styling-form-fields-with-css-formplus-css-forms-2

Here are five HTML form design examples with code that you can use to create beautiful CSS forms.

  1. To give the field a background colour of red, you can add this to the custom CSS field.
    #fp-1550487293722 {
                 background-color: red;
    }

  2. To give the field a 10px thick border whose colour is red, you can add this to the custom CSS field
    #fp-1234567890 {
                 border: 10px solid red;
    }
    styling-form-fields-with-css-formplus-css-forms

  3. To create a dashed border line, add this
    #fp-1234567890 {
                 border: 10px dashed red;
    }
    styling-form-fields-with-css-formplus-css-forms

  4. If you want to create more rounded borders than the default field borders, add the following
    #fp-1234567890 {
                 border-radius: 100px;
    }
    The value can be adjusted to meet your needs.

  5. For fields located inside table fields, you can set how the style for each column would be by specifying the column index (which is 0-based) together with the table control id. If for example, you want to style the field in the first column, you can use a CSS target of this format:
    #fp-1234567890 #fp-0 {
                 max-width: 50%
    }
    This CSS styling makes the field in the first column of the table field (with id 1234567890) have a width that is 50% of the parent’s total width.

  6. To style the form title, use the form title id target
    #formTitle {
                 background-color: yellow;
    }
    #formTitle:hover {
                 border: 3px solid grey;
    }

  7. To style the progress bar in a multi-page form, use this to style the progress bar in itself;
    #formPagesProgress {
                 background-color: white;
    }

    Use this to style the indicator in the progress bar
    #formPagesProgress .bar {
                 background-color: red;
    }

  8. To style the asterisk (*) on a required field, use this CSS snippet
    .field.required label:after {
           Color: blue;
    }

This is what the entire form looks like when you're done customizing with CSS:

styling-form-fields-with-css-formplus-css-forms

There, now you have 8+ ways to help you style your form fields with CSS, we hope you have learned more than one thing on how to style your forms in the exact way you want them to look.

To start creating beautiful forms with custom CSS, sign up to use the Formplus builder now. It is free and integrates well with numerous tools. 



  • Formplus blog
  • on 3 min read

You may also like:

How to Reach Quiet Kids in the Classroom (Selective Mutism)

As awareness of physical and mental health comes to fore, it is pertinent that parents/guardians/teachers take a closer look at children ...

Formplus blog
4 min read
Workplace Harassment: Types, & How to Prevent Harassment at Work

Harassment can occur in many different social settings such as the workplace, the home, school, churches. The Harassers or victims may be ...

Formplus Blog
17 min read
The 4,5, and 7 Point Likert Scale, Questionnaire Examples & Analysis

Wondering what a Likert Scale is? A Likert scale is basically a scale used to represent people's opinions and attitudes to a topic or ...

Formplus Blog
12 min read
What is a Purchase Order? Template Format & How to Write a PO

Traditionally, a purchase order is used to regulate the purchasing of products and services from external suppliers. With an existing ...

Formplus Blog
14 min read
Formplus Logo   Never miss a story from us, get weekly updates in your inbox.

Formplus - For Seamless Data Collection

Take charge by implementing a powerful data collection tool into your processes. See how Formplus can transform the way you work with a free 21-day trial.
Try it Free