Bootstrap Form with Columns: Create Responsive Layouts

Ruth Jul 09, 2026

Bootstrap, a popular CSS framework, offers a robust grid system that simplifies responsive design. One of its standout features is the ability to create forms with columns, enhancing user experience and visual appeal. Let's delve into how to create Bootstrap forms with columns.

HTML Form Validation with Bootstrap
HTML Form Validation with Bootstrap

Bootstrap's grid system is built with flexbox and is mobile-first. It allows up to 12 columns per row, making it incredibly versatile for laying out forms. By default, form controls and labels are stacked vertically, but with a bit of Bootstrap magic, we can arrange them in columns.

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

Creating a Basic Form with Columns

To start, include the Bootstrap CSS and JavaScript files in your HTML document. Then, wrap your form in a <div> with the class .container or .container-fluid for full-width.

Wizard
Wizard

Within this container, create a <div> with the class .row to start a new row. Inside this row, you can create columns using <div> elements with classes like .col, .col-md, .col-lg, etc., specifying the number of columns for each breakpoint.

Using Bootstrap's Grid System

Bootstrap Forms
Bootstrap Forms

Bootstrap's grid system is based on a 12-column layout. For instance, to create two equal-width columns, use .col-md-6. Here's a simple example:

<div class="row">
  <div class="col-md-6">
    <input type="text" class="form-control" placeholder="First name">
  </div>
  <div class="col-md-6">
    <input type="text" class="form-control" placeholder="Last name">
  </div>
</div>

In the above example, the form controls will stack vertically on smaller screens and display side by side on medium and larger screens.

Aligning Labels and Controls

Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5
Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5

By default, Bootstrap aligns labels to the left of their respective controls. To align them differently, use the .form-group class and the .col-form-label class for labels. Here's how to align a label above its control:

<div class="form-group row">
  <label for="inputEmail3" class="col-form-label col-md-2">Email</label>
  <div class="col-md-10">
    <input type="email" class="form-control" id="inputEmail3" placeholder="Email">
  </div>
</div>

In this example, the label is in a 2-column width, and the control is in a 10-column width, creating space for the label above the control.

Nesting Columns for More Complex Layouts

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

Sometimes, you might need more complex layouts with nested columns. To do this, simply place a .row inside another .col.

For instance, you might want to have three columns on larger screens, but only one on smaller screens. You can achieve this by nesting columns:

Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5
Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5
Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5
Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5
Free 22+ HTML5 Signup & Registration Forms - HTML, CSS
Free 22+ HTML5 Signup & Registration Forms - HTML, CSS
Bootstrap Fieldset Legend: How To + Examples + Template | AZMIND
Bootstrap Fieldset Legend: How To + Examples + Template | AZMIND
the form wizard screen is displayed on an ipad
the form wizard screen is displayed on an ipad
Bootstrap 5 popup form
Bootstrap 5 popup form
Bootstrap 3 Contact form with Validation
Bootstrap 3 Contact form with Validation
BOOTSTRAP INPUT FORM (2020) | HOW TO MAKE FORM IN BOOTSTRAP
BOOTSTRAP INPUT FORM (2020) | HOW TO MAKE FORM IN BOOTSTRAP
Better Forms: Right aligned labels in two column layout
Better Forms: Right aligned labels in two column layout
30 Best Free Bootstrap Wizards & Forms 2026 - Colorlib
30 Best Free Bootstrap Wizards & Forms 2026 - Colorlib
Dual Design Registration Form
Dual Design Registration Form
Bootstrap Tutorials: The Best of Azmind | AZMIND
Bootstrap Tutorials: The Best of Azmind | AZMIND
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
Google Map Autocomplete to Form (Bootstrap)
Google Map Autocomplete to Form (Bootstrap)
do my long form Plssss
do my long form Plssss
How alike are we form?
How alike are we form?
Login Form Template Bootstrap 5
Login Form Template Bootstrap 5
a screenshot of a web page with an image of the user's profile
a screenshot of a web page with an image of the user's profile
YouTube video short 7
YouTube video short 7
Tailwind Form with progress bar
Tailwind Form with progress bar

<div class="col-md-4">
  <div class="row">
    <div class="col">
      <input type="text" class="form-control" placeholder="First name">
    </div>
    <div class="col">
      <input type="text" class="form-control" placeholder="Last name">
    </div>
  </div>
</div>

In this example, the inner .row will stack its columns vertically on smaller screens, while the outer .col-md-4 will display them side by side on medium and larger screens.

Incorporating Bootstrap's form with columns functionality into your projects can significantly enhance user experience and make your forms more visually appealing. With a bit of practice, you'll find that creating responsive forms is a breeze with Bootstrap.