Bootstrap Form with Two Columns

Ruth Jul 09, 2026

Creating responsive forms is a common task in web development, and Bootstrap, with its powerful grid system, makes this process a breeze. Today, we're going to explore how to create a Bootstrap form with two columns, a layout that's perfect for collecting and organizing user data.

HTML Form Validation with Bootstrap
HTML Form Validation with Bootstrap

Before we dive into the code, let's briefly discuss why two-column forms are useful. They allow you to group related fields together, making your form more intuitive and easier to fill out. Plus, they're great for displaying information side-by-side on larger screens.

37 Free Bootstrap Form Templates You Can Try Right Now
37 Free Bootstrap Form Templates You Can Try Right Now

Setting Up the Bootstrap Grid

In Bootstrap, the grid system is built with flexbox and is mobile-first. It's divided into a 12-column layout, allowing you to create complex responsive layouts with ease. For our two-column form, we'll use the `.row` and `.col` classes.

Bootstrap Forms
Bootstrap Forms

First, let's wrap our form in a `.container` div to ensure it's centered on the page. Then, we'll create a `.row` div to hold our two columns. Each column will be a `.col` div with the appropriate number of columns specified. In our case, we'll use `.col-md-6` to create two equal-width columns on medium and larger screens.

Creating the First Column

Wizard
Wizard

Inside the first `.col-md-6` div, we'll start adding our form fields. We'll use the `.form-group` class to create a consistent layout and the `.form-control` class for our input fields.

Let's add a label and an input field for the user's first name. We'll also add a text area for a longer response, like a message. Don't forget to give each input field a unique `name` attribute for proper form submission.

Creating the Second Column

Best Free Bootstrap Login Forms » CSS Author
Best Free Bootstrap Login Forms » CSS Author

In the second `.col-md-6` div, we'll mirror the structure of the first column. Here, we'll collect the user's last name and email address. We'll also add a submit button to send the form data.

Remember, Bootstrap's grid system is responsive, so our two-column layout will stack on smaller screens, ensuring a great user experience on all devices.

Styling the Form

the form wizard screen is displayed on an ipad
the form wizard screen is displayed on an ipad

Bootstrap comes with pre-defined styles for form elements, but you can always customize them to match your project's design. Let's add some basic styling to our form.

We'll use the `.form-control` class for our input fields, which adds some basic styles like rounded corners and a border. For the submit button, we'll use the `.btn` class with the `.btn-primary` variant for a standard blue button.

Free 22+ HTML5 Signup & Registration Forms - HTML, CSS
Free 22+ HTML5 Signup & Registration Forms - HTML, CSS
Bootstrap 5 Modal Form
Bootstrap 5 Modal Form
Bootstrap 5 popup form
Bootstrap 5 popup form
Bootstrap 3 Contact form with Validation
Bootstrap 3 Contact form with Validation
Better Forms: Right aligned labels in two column layout
Better Forms: Right aligned labels in two column layout
BOOTSTRAP INPUT FORM (2020) | HOW TO MAKE FORM IN BOOTSTRAP
BOOTSTRAP INPUT FORM (2020) | HOW TO MAKE FORM IN BOOTSTRAP
Bootstrap Tutorials: The Best of Azmind | AZMIND
Bootstrap Tutorials: The Best of Azmind | AZMIND
30 Best Free Bootstrap Wizards & Forms 2026 - Colorlib
30 Best Free Bootstrap Wizards & Forms 2026 - Colorlib
Google Map Autocomplete to Form (Bootstrap)
Google Map Autocomplete to Form (Bootstrap)
an image of a computer screen showing the transaction process and how to change it from one user's account
an image of a computer screen showing the transaction process and how to change it from one user's account
Login Form Bootstrap Templates
Login Form Bootstrap Templates
40 Best Free Bootstrap Login Form Templates 2026 - Colorlib
40 Best Free Bootstrap Login Form Templates 2026 - Colorlib
How alike are we form?
How alike are we form?
Login Form Template Bootstrap 5
Login Form Template Bootstrap 5
Website Layout Ideas to Inspire Your Next Project
Website Layout Ideas to Inspire Your Next Project
Tailwind Form with progress bar
Tailwind Form with progress bar
Multi Step Form with Step Progress Bar in HTML CSS & JavaScript
Multi Step Form with Step Progress Bar in HTML CSS & JavaScript
Bootstrap 4 Quick Start: Quiz
Bootstrap 4 Quick Start: Quiz
Bootstrap 5 Responsive Contact Form
Bootstrap 5 Responsive Contact Form
Bootstrap Templates | 814K+ to Download
Bootstrap Templates | 814K+ to Download

Adding Form Validation

To improve the user experience, let's add some basic form validation. We'll use Bootstrap's built-in validation styles and the `required` attribute on our input fields.

Bootstrap will automatically add the `is-invalid` class to any required field that's empty when the user tries to submit the form. We can also add the `is-valid` class to indicate that a field has passed validation.

Responding to Form Submission

Finally, let's discuss what happens when the user submits the form. By default, the form will refresh the page, which isn't ideal for most web applications. Instead, we should use JavaScript to send the form data to a server-side script.

We can use the `fetch` API or a library like Axios to send a POST request with the form data. Once the data is successfully sent, we can display a success message or redirect the user to another page.

And there you have it! A responsive Bootstrap form with two columns, complete with styling and validation. With Bootstrap's grid system, creating complex layouts is a breeze, allowing you to focus on the functionality and user experience of your forms.