Published on September 21, 2019

Sample CSS for Styling Gravity Forms Opt-in Form

Sridhar Katakam

This members-only tutorial provides the sample CSS to style a Gravity Forms form having an email address field.

We will set rounded corners for the email input field and submit buttons and move the submit button inside the email field.

Before:

After:

Step 1

Install and activate Gravity Forms.

Create a form having an Email field.

Step 2

Insert the form in your Page/Template either using a shortcode or the PHP function.

Here's the shortcode I used on my test site.

Step 3

Add a class of say, ts-form to the container in which the form is placed.

If you are using Oxygen, you would add this class to the Shortcode component.

Step 4

Add this CSS and tweak it to your needs:

This is a premium members-only content.

To view the rest of the content, please sign up for membership ($47/month or $499 one-time).

Already a member? Log in below or here.

tagschevron-leftchevron-rightchainangle-rightangle-upangle-downfolder-omagnifiercrossmenuchevron-downarrow-right