How To Make Two Columns In Contact Form 7

Web Development Software

Hello there! In this post, I will be discussing how to effectively create two columns using Contact Form 7. As a developer, I have faced difficulties with this myself, so I can relate to the frustration it may cause. But don’t worry, I am here to assist you and share some helpful tips that have worked for me. Without further ado, let’s begin!

Understanding Contact Form 7

Contact Form 7 is a popular WordPress plugin that allows you to easily create and manage contact forms on your website. It offers a simple and flexible way to collect user information, but by default, it doesn’t provide a built-in option to create two columns. However, with a little bit of HTML and CSS magic, we can achieve the desired result.

The HTML Structure

To create two columns in Contact Form 7, we need to modify the HTML structure of the form. Contact Form 7 uses a simple markup structure consisting of form tags, fieldsets, and input elements. We’ll need to add some additional HTML elements and CSS classes to create the two-column layout.

First, let’s wrap our form fields in a container div. This will allow us to apply CSS styles specifically to the form fields within that container.

<div class="cf7-two-column">
<label for="name">Your Name (required)</label>
<input type="text" name="name" id="name" required>

<label for="email">Your Email (required)</label>
<input type="email" name="email" id="email" required>


Next, we’ll add some CSS to divide the container into two columns. You can do this by applying a float property to the form fields and specifying the width for each column. Here’s an example:

.cf7-two-column {
width: 100%;

.cf7-two-column label,
.cf7-two-column input[type="text"],
.cf7-two-column input[type="email"] {
float: left;
width: 48%; /* Adjust this value as needed */
margin-right: 2%; /* Adjust this value as needed */

Customizing the Look and Feel

Now that we have our two-column layout set up, it’s time to add some personal touches and make it visually appealing. Contact Form 7 allows you to customize the appearance of your form using CSS classes and inline styles.

You can apply CSS styles to the form fields, labels, and submit button to match the design of your website. For example, you can change the font style, background color, and add some padding to make it stand out.

.cf7-two-column input[type="text"],
.cf7-two-column input[type="email"],
.cf7-two-column label {
font-family: Arial, sans-serif;
background-color: #f5f5f5;
padding: 10px;

Feel free to experiment with different CSS properties until you achieve the desired look and feel.


Creating two columns in Contact Form 7 might seem challenging at first, but with a bit of HTML and CSS knowledge, you can easily achieve this layout. By modifying the HTML structure and applying some custom CSS styles, you can create a visually appealing two-column form that will enhance the user experience on your website.

I hope this article has been helpful in guiding you through the process. Don’t hesitate to add your personal touch and get creative with the design. Happy form building!