The Best Way to Create a 2 Column Pardot Form


In this tutorial, I’ll show you the best way to create a two-column Pardot form. This is a follow up on my original post How to Create a 2 Column Pardot Form. By popular request, this new method includes a way to make certain form fields full width and is fully responsive. All you have to do is add CSS classes to your form fields and copy & paste the CSS provided into Pardot.

Add CSS classes to your form fields

The first step is to add CSS classes to your form fields. We will be using three different classes within the forms:

  1. form-col-1: Add this to form fields that will be in the left column.
  2. form-col-2: Add this to form fields that will be in the right column.
  3. form-col-full: Add this to form fields that you want in a single, full-width column.

To add a class to a form field, navigate to the fields tab of your form, click on the pencil icon to edit the form field. Then, click on the advanced tab and enter the class name in the CSS classes field.

Repeat this process until all form fields have one of the three classes. Here’s an outline of what my sample form looks like, where all the fields are in two columns except for the email field which is full width.

Edit the Form HTML

By default, every form field within your form will be wrapped in paragraph tags (<p></p>). This is not ideal when it comes to creating two-column forms, but it’s easy to update.

Navigate to your layout template and click on the Form tab. Change the paragraph tag to a DIV and close it right after the error message fields, as illustrated below.

Alternatively, replace the ENTIRE content within the form tab with the code below.

Add the CSS

Next, you need to add the following CSS in Pardot. You can add this in the layout template or within the form editor under look and feel > above form.

Here’s what my example form looks like with all the CSS added.


Send them to me via email, send me a tweet @jennamolby, or leave a comment

Related Posts

  • 23/07/2020
    How to Add an Opt-in Message & Privacy Policy Message to Pardot Forms

    GDPR and CASL compliance are just a few reasons to add an explicit opt-in message or a privacy policy to your Pardot forms. In this post, I’ll show you how to add a custom opt-in message to your form and a privacy consent message above the form submit button.

  • 23/06/2020
    How to Use Pardot Form Handlers

    Pardot form handlers allow you to use your own forms to post your data to Pardot. A Form handler is a great alternative to use instead of Pardot iFrame forms. They allow you to fully customize the look of your form and submit data to more than 1 database. In this tutorial, you will learn how to create a form handler from scratch.

  • 05/03/2020
    How to Create a Better Date Picker Within Pardot Forms

    Want to be able to restrict the date range of a date picker within your Pardot forms? The default date picker with Pardot does not provide this option, but with a couple of lines of JavaScript, you can enhance the functionality of the date picker. In this tutorial, I’ll show you how to use the jQuery UI date picker within your Pardot form.

52 comment(s)
  • Yee Khang

    02/08/2018 at 12:01 pm

    Nevermind! I figured it out, it was a setting in the template form. THANKS!

  • Yee Khang

    02/08/2018 at 10:11 am

    Great help!! So happy to have found this page. I had one question, if I'm looking on the landing page on my phone, I only see the email & submit button. Is there a way to make it show or is this something pardot is doing? Thanks for the help!

    • Jenna Molby
      to Yee Khang

      02/08/2018 at 1:20 pm

      Hi Yee, The code is set up to be responsive. Is your landing page responsive? If you're still having trouble, email [email protected] with a link to your landing page and I can take a look. Cheers, Jenna

    • Shay
      to Jenna Molby

      05/08/2019 at 12:42 pm

      Hi Jenna, this is a great post! I've followed your post and have a nice responsive form. However, I was wondering how you would make the error message text colour red ? I've tried adding the following code, but no luck. Any help would be appreciated! #pardot-form span.error { color: #FF8989; font-size: 8px; width: 100% margin-bottom: 0.1em; font-weight: 40; border-radius: 8px; font-family: 'Open Sans',sans-serif; } }

    • Jenna Molby
      to Shay

      06/08/2019 at 12:08 pm

      Hi Shay, Thank you! Try changing your selector to #pardot-form .error. If that doesn't work there might be some other CSS on the page that is overriding your CSS. Cheers, Jenna

  • Carolin

    26/07/2018 at 6:36 am

    HI Jenna. How do you put the Submit Button in the middle? Thanks

    • Jenna Molby
      to Carolin

      26/07/2018 at 9:14 am

      Hi Carolin, Adding this CSS should do the trick body form.form p.submit { text-align: center !important; margin:0 !important; } body form.form input[type=submit] { margin-right:0 !important; margin-left:0 !important; } Cheers, Jenna

  • Jasmin

    23/07/2018 at 2:15 am

    When I copy in the CSS by either method it just adds code to the page, it doesn't except it as actual code.

    • Jenna Molby
      to Jasmin

      23/07/2018 at 9:19 am

      Hi Jasmin, Make sure you are wrapping the CSS with the style tags <style> THE CODE HERE </style>. Cheers, Jenna

  • Annaleece

    22/07/2018 at 11:20 pm

    Hi there. Thanks for this however when I paste the above CSS code, it just appears as text. Is there a particular section or additional coding required? Thank you

    • Jenna Molby
      to Annaleece

      23/07/2018 at 9:19 am

      Hi Annaleece, Make sure you are wrapping the CSS with the style tags <style> THE CODE HERE </style>. Cheers, Jenna

1 2 3 7

Leave A Comment

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

About Me

Welcome to my blog, where I share, tips, tricks, thoughts and solutions that I learn in my daily life as a Marketing Operations leader.

Most Commented
Popular Posts