How to Style Text Fields of Gravity Forms

by | Last updated Mar 11, 2025 | Gravity forms, Styles & Layouts | 8 comments

Introduction

Text input fields are used in Gravity forms to capture a single line of text. You can use these to get information like full name, profession, education qualifications, etc. Even some advanced fields like Name, Address, and phone number are also combinations of text input fields.

Online form with Input fields.

In this tutorial, I will teach you how to you can do the following styling for text input fields:

  • Set width
  • Set the height of the input box
  • Set font style to bold, italic, uppercase, and underline
  • Set border width, type, color, and radius
  • Set background color
  • Set font color and font size
  • Set margin and padding
  • Apply Material design
  • Apply Bootstrap design
  • Add Icons inside input fields

Basic Input Fields Styling with Gravity Booster

Gravity Booster is a free plugin for Gravity Forms that offers a no-code solution for designing various parts of the form. It can do most of the design settings like borders, font size, background color, margins, and paddings for input fields.

Gravity Booster plugin for Gravity Forms.

Step to Design Input Fields Using Gravity Booster

  • Install and activate the Gravity Booster plugin by navigating to your WordPress dashboard and then clicking on Plugins -> Add New. Search for Gravity Booster and then install it.
  • Now go to the Forms menu and edit the form for which you want to style input fields.
  • From the form editor click on the Styler option. This will take you to the Gravity Booster Styler interface.
  • On the right side, you can see all the different parts of the form which can be designed and on the left, you can see the live preview of the form.
  • From the live preview click on any input field and that will automatically open the styling setting for text input fields. Most of the settings also provide separate controls for settings values for different media devices like desktops, tablets, and mobiles. You can do the following settings from here.

Design Settings for Text fields in Gravity Booster

  • Width: This will set the width for text input fields. Its value can be set in px, rem, em, %, vw, or vh units.
  • Height: This sets the height for input fields.
  • Font Style: With this setting, you can make the font for input fields to be bold, italic, uppercase, and underlined.
  • Font Size: This set is used to set the font size of input for text fields.
  • Font Color: This will set the color of the font for text inputs. You can use the color picker to select the color or enter hex, ,RGB or HSL codes.
  • Border: This field is used to set the border around text fields. If you don’t want any border then set its value to 0px. From here itself you can also set border color as well as border type.
  • Border Radius: This adds curvature to the border corners. If you want to make your text input fields round then use a bigger value like 10px inside this field.
  • Background Color: Background color will add a background inside text inputs.
  • Margin: This setting is used to add space between adjacent elements. It can be used to increase or decrease the gap between two inputs.
  • Padding: This setting adds the space in text inputs from its container. So, whenever someone types then it will have space between the text and the input border. You can also set padding for any or all sides.
Text field settings of Gravity Booster.

After making the desired changes click on the Save button. All your settings are now saved and they will be shown to your website visitors as well.

Advanced Input Fields Styling with Gravity Booster Addons

If you want to further elevate the styling of your Gravity Forms input fields then you can take advantage of Gravity Booster addons. These add-ons will provide you with a quick way to do a consistent and coherent styling of all your form fields with only a few clicks.

Styling Gravity Forms Input Fields using Material Design Addon

Material design is a premium Gravity Booster add-on based on Google’s material design philosophy. It can make the input fields interactive with smooth animations for hover and click effects.

  • Once you installed and activated the material design addon then go to the Forms menu and edit the form for which you want to style input fields.
  • From the form editor click on the Styler option. This will take you to the Gravity Booster Styler interface.
  • Now go to Material Design option and you see the following styling options
Material Design applied on Gravity form using Gravity Booster in WordPress

Design Settings of Material Design for Gravity Forms

  • Enable Material Design: This will enable material design for your form and will immediately change the appearance of text input fields.
  • Theme Color: The material design uses this color to highlight actions like clicking inside of the input field, the color of labels, etc. Use a color picker or add colors using hex, RGB, or HSL codes to set your material design theme.
  • Style: Here you can switch between Filled and Outlined style options. Both of these have distinct styling and you can see how they look in the preview of your form.
  • Font Family: There is an option to select from 100’s of font families. 
  • Font Style: This setting lets you set the text inside inputs to be bold, uppercase, or underlined.

After making the changes don’t forget to Save them.

You can check the implementation of Material design on Gravity Forms text input fields using the below links

You can also check the detailed guide for styling your Gravity Forms with Material Design.

Styling Gravity Forms Input Fields using Bootstrap Addon

Bootstrap is amongst the most popular CSS styling frameworks. Gravity Booster has a premium Bootstrap addon for Gravity Forms. The addon is fairly easy to use with options that will make your form’s text input fields stand out.

  • Go to the Forms menu from your WordPress dashboard after installing and activating the Bootstrap addon.
  • Now click on the edit button to open the form editor and then navigate to the Styler option.
  • Here click on the Bootstrap option. This will show you all the available Bootstrap controls to customize the appearance of text input fields.
    • Enable Bootstrap Design: This will implement the Bootstrap design on your current form.
    • Theme Color: Bootstrap design gives a glowing border color when you click inside the input field. By changing the theme color you can set the color which will be used for the glowing border color.
Bootstrap Settings of Gravity Booster.

After making the changes to the above settings then click on the Save button to make them live on your website.

Here is the implementation of Bootstrap design on Gravity Forms
Bootstrap Design Demo

You can also check the detailed guide for Bootstrap Design for Gravity Forms.

Styling Gravity Form Input Fields using Field Icons Addon

Field Icons for Gravity Forms allow you to add font awesome or image icons inside input fields. It is also a no code solution so, you don’t need any technical knowledge to use it. 

With the Field Icons addon you can not only set icons but also completely customize their appearance by setting icon color, icon size, icon spacing, and a lot more. It has support for more than 900 icons and you also have the flexibility of using your own images as icons.

Field Icons of Gravity Booster.

You can check the demo for field icons on Gravity Forms using the below links

We also have a detailed guide for using Field Icons.

Styling Text Input Fields Using CSS Coding

Use this method if you have some experience of coding otherwise, you can use the free Gravity Booster plugin method. To change the styling attributes you need to add the following CSS code

Note: Make sure you replace FORMID with the actual form ID

This CSS code will target all the text input fields present inside the form. Whatever attributes you will add inside this will work on text inputs. In the above code, I have added border, font size, color, border style, margin, and padding attributes.

You can also add any other attributes. If you need more info or have any questions then leave a comment below and I will help you.

Still stuck? Need custom solution? We can help

Great Gravity plugin

This is great for all those styling problems that can arise. Easy to use with a gentle learning curve.

A great find!

This plugin enabled me to exactly what I wanted to with my forms and they look great! It would have been much more painful to customize my forms without it.

Much better than forms that come with the themes

Solid plugin, much better than the forms that come with the themes. We’ve used GF to create membership and donation forms, which our clients love. I thought GF was a little pricey but it’s paid for itself in customer satisfaction.

It Works Perfectly

If you need to give your form a bit of style, this plugin is perfect and easy to use.

Great stuff!

I rarely take the time to leave reviews.
With this one I felt compelled because it is so good!

Great Plugin

This plugin is a perfect complement to style Gravity-Forms. The intuitive user interface, integrated into the Customizer, is very well done. PERFECT!!! THANK YOU!!!

Very good and beautiful

It worked very good used with divi theme, popup builder and gravity forms!
CongraTulations!

It is a amazing gravity form plugin that I was looking for long time.Thanks

Thanks for helping for designing gravity form such an amazing way.

Very Helpful!

Gravity forms are awesome, but notoriously difficult to style. I was struggling for hours to reduce the space between a field, let alone tweak size, color, etc. This plugin is exactly what I was looking for – well done!

Very convenient, works great!

I’ve had a need to sometimes change the style of Gravity Forms, and this saves time so I don’t have to figure out the CSS styles and manually override them 😉

Just what I needed!

Love love love this plugin. Who wants to spend hours using css to style a form?
Not me! I can get my forms looking exactly as I want them to in just a few clicks.

Fantastic plugin!

This plugin saved me hours of work. I am not well versed in coding by hand and now I don’t have to figure it out. I styled my Gravity Forms beautifully, the easy way. Worked perfectly. Thank you.

great!

works great! should be in the gravity basic installation…

I love it

Easy and efficient plugin !

Excellent plugin

Makes the job of styling forms so much easier.

Great Plugin Essential!

Very easy to use, exactly what I needed for Gravity Forms!

Should be default Gravity Forms functionality

Great plugin. My go to solution for Gravity Forms styling.

Exactly what Gravtiy Forms missed

I use it on every page – that should say it all.

Exactly what I was looking for

I don’t know CSS and was asked to make very specific changes to our Gravity Forms. This did the trick and this tool gave me the flexibility I needed.

Super Awesome and Easy to Use

Really great plug in that is so easy and simple to use! Thank you for your awesome work!

Easy to use and powerful

Recommend this to anyone struggling to format their forms

Good Plugin

A bit of a learning curve for this old woman, but does what I need it to do!!

Save me hours of work

I was skeptical to download…how can it be that easy? But, it was and it truly saved me hours of work to style my Gravity Forms.

great plugin – easy to use

this plug in was exactly what i needed to help finish the layout of my page.

I love it!

Just right!

Outstanding! Does just what I wanted.

Works Great for Me

This app is easy to understand and use and works great for me.

Excellent

Makes styling Gravity Forms EASY.

Very Useful

Instead of playing with the style sheets, you can make all the changes directly here.

Perfect

It works perfectly. I am satisfied. Congratulations!

Great work!

Thank you guys! extremely helpful!

Excellent plugin

Easy and intuitive to use and helps to accelerate workflow.

Huge time saver

You can accomplish what this plugin does using CSS yourself, but the plugin saves you the time of doing so. This is a simple, effective and efficient way of making your GF look better.

8 Comments

  1. Joann Brenner

    I need to make sure all of the input text fields on my gravity form only use uppercase.
    I added the following to the style.css
    body #gform_wrapper_1 .gform_body .gform_fields .gfield input[type=text] {
    text-transform: uppercase;
    }

    I am a novice when it comes to CSS. I’m using the Gravity Form (form id-=1) within a Product that uses Gravity Forms Product Add-on. When I preview the product and key into the field, I get lowercase.

    What am I possibly doing incorrectly?

    Reply
    • sushil kumar

      Can you give me the link to the form so, that I can check the issue.

      Reply
  2. Shannon

    I tried the above CSS code (in the additional CSS area of my site)and it did not work.

    Reply
    • sushil kumar

      I have modified the code. Please make sure you replace FORMID with the actual id of the form

      Reply
  3. Sam Boddin

    Hi, can you explain how to adjust the height of just one input box instead of adjusting the whole form? Like the input field for a message. And making sure it doesn’t overlap a ‘submit’ button

    Thanks!

    Reply
    • sushil kumar

      Can you provide me a link to your form. You can use the contact form to send me think.

      https://wpmonks.com/contact-us/

      I can then inspect the form and will send you custom CSS code

      Reply
  4. Jonathan

    Hi, Can you help with code to modify one field only so that it is read-only, but most importantly also doesn’t look like it is a field (no background, border, etc). I know how I can do this for the whole form but am not sure how to do it for one field only without affecting other fields of the same type.
    Thanks
    The Form ID is 2 and the field ID is 70.

    Reply
  5. Jay

    hello there, I cannot get your code to work and I really would love to get this sorted.
    I do not want the headings to show, I want to change the email box to be 100%, and put a border around with no color in the background of the boxes! I would really appreciate you help :) I am new to gravity forms and been playing around with thsi for ages. I have put the id correctly I hope. Thanks ever so much. I keep trying with the css code but nothing seems to be working…

    Reply

Submit a Comment

Your email address will not be published. Required fields are marked *