Bootstrap Simple Grid: Master Layouts in Minutes

Ruth Jul 09, 2026

Bootstrap, a popular CSS framework, simplifies responsive web design by providing a grid system that adapts to different screen sizes. The Bootstrap simple grid is a fundamental aspect of this framework, offering a 12-column layout that can be divided into various configurations, making it a powerful tool for creating flexible and responsive layouts.

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

Bootstrap's grid system is built with flexbox, ensuring it's responsive and mobile-first. It's designed to work on any device, from phones to desktops, and everything in between. Understanding the Bootstrap simple grid is essential for harnessing the full potential of this versatile framework.

Bootstrap 4 Grid System
Bootstrap 4 Grid System

Understanding the Bootstrap Grid System

The Bootstrap grid system is based on a 12-column layout, with each column having a width of approximately 8.33%. This layout is divided into rows, which can contain up to 12 columns. The grid system uses a combination of CSS classes to create these layouts, making it easy to create complex designs with minimal code.

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

Bootstrap's grid system is also responsive, meaning it adjusts the layout based on the size of the device's screen. This is achieved by using media queries to apply different CSS rules at different screen sizes. The grid system has four tiers: xs (phones), sm (tablets), md (desktops), and lg (large desktops).

Creating a Basic Grid Layout

Bootstrap Roadmap: Ultimate Guide for Beginners
Bootstrap Roadmap: Ultimate Guide for Beginners

To create a basic grid layout in Bootstrap, you need to wrap your columns in a .row class and your columns in a .col class. For example, to create a layout with three equal-width columns, you would use the following code:

<div class="row"> <div class="col">Column</div> <div class="col">Column</div> <div class="col">Column</div> </div>

Offsetting Columns

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

Bootstrap also allows you to offset columns to create gutters between them. This is achieved by adding an offset class to a column, such as .offset-4. This will push the column four columns to the right, creating a gutter between it and the previous column. For example:

<div class="row"> <div class="col">Column</div> <div class="col offset-4">Offset Column</div> </div>

Responsive Design with Bootstrap Grid

a pink and blue timetable with lines on it
a pink and blue timetable with lines on it

Bootstrap's grid system is mobile-first, meaning it's designed to work best on mobile devices. This is achieved by using media queries to apply different CSS rules at different screen sizes. The grid system has four tiers: xs (phones), sm (tablets), md (desktops), and lg (large desktops).

You can use these tiers to create responsive designs that adapt to different screen sizes. For example, you can use the .col-sm-6 class to create a column that spans six columns on screens larger than 576px (the small breakpoint).

an image of a magazine with pink and white stripes on the front, side and back pages
an image of a magazine with pink and white stripes on the front, side and back pages
How the Bootstrap 4 Grid Works
How the Bootstrap 4 Grid Works
Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5
Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5
Bootstrap Photo Gallery
Bootstrap Photo Gallery
Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5
Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5
Analytics - Bootstrap HTML Admin Dashboard Template
Analytics - Bootstrap HTML Admin Dashboard Template
a blueprinted diagram showing the different parts of an object that can be used to create
a blueprinted diagram showing the different parts of an object that can be used to create
Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5
Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5
the different types of font and numbers
the different types of font and numbers
a red and white checkered pattern is shown
a red and white checkered pattern is shown
three different colored lines are shown in this graphic
three different colored lines are shown in this graphic
Difference Between CSS Grid and Bootstrap
Difference Between CSS Grid and Bootstrap
Bootstrap 3 grid system explained
Bootstrap 3 grid system explained
the grid systems and layouts are shown in this brochure, as well as text
the grid systems and layouts are shown in this brochure, as well as text
Understanding the Bootstrap 4 Grid System
Understanding the Bootstrap 4 Grid System
Bootstrap Webapp Dashboard Simple Admin Panel Premium Template
Bootstrap Webapp Dashboard Simple Admin Panel Premium Template
Coding with Parvez
Coding with Parvez
several squares are shown in gray and white
several squares are shown in gray and white
an orange and white checkered pattern with text
an orange and white checkered pattern with text

Stacking Columns on Small Screens

By default, Bootstrap's grid system stacks columns on small screens (less than 576px). However, you can use the .flex-column-reverse class to reverse the order of columns on small screens. For example:

<div class="row flex-column-reverse"> <div class="col">Column</div> <div class="col">Column</div> </div>

Using the Bootstrap Grid System for Flexible Layouts

The Bootstrap grid system is a powerful tool for creating flexible and responsive layouts. By understanding how to use the different column classes and offset classes, you can create complex designs that adapt to different screen sizes. Whether you're creating a simple layout with a few columns or a complex layout with nested rows and columns, the Bootstrap grid system has the tools you need to get the job done.

So, go ahead, explore the Bootstrap grid system, and start creating responsive and flexible layouts today!