🌐
Bootstrap
getbootstrap.com › docs › 4.1 › layout › grid
Grid system · Bootstrap
See how aspects of the Bootstrap grid system work across multiple devices with a handy table. Utilize breakpoint-specific column classes for easy column sizing without an explicit numbered class like .col-sm-6. For example, here are two grid layouts that apply to every device and viewport, from xs to xl.
🌐
Bootstrap
getbootstrap.com › docs › 5.0 › layout › grid
Grid system · Bootstrap v5.0
Here’s how the grid changes across ... numbered class like .col-sm-6. For example, here are two grid layouts that apply to every device and viewport, from xs to xxl....
🌐
W3Schools
w3schools.com › bootstrap › bootstrap_grid_examples.asp
Bootstrap Grid Examples
The Bootstrap grid system has four classes: xs (phones), sm (tablets), md (desktops), and lg (larger desktops).
🌐
Bootstrap
getbootstrap.com › docs › 3.3 › examples › grid
Bootstrap grid examples
.col-xs-6 .col-sm-3 Resize your viewport or check it out on your phone for an example.
🌐
Medium
medium.com › @AlexanderObregon › understanding-grid-system-in-bootstrap-a-detailed-explanation-fbb69b65d386
Understanding Grid System in Bootstrap — A Detailed Explanation
April 29, 2024 - In this example, the horizontal gutters are 1.5rem (because of gx-5), and the vertical gutters are 1rem (because of gy-3). We’ve explored the integral components of Bootstrap’s grid system, delving into its containers, rows, columns, and the logic behind the 12-column structure.
🌐
W3Schools
w3schools.com › bootstrap4 › bootstrap_grid_examples.asp
Bootstrap 4 Grid Examples
BS4 Grid System BS4 Stacked/Horizontal BS4 Grid XSmall BS4 Grid Small BS4 Grid Medium BS4 Grid Large BS4 Grid XLarge BS4 Grid Examples · BS4 Basic Template BS4 Editor BS4 Exercises BS4 Quiz BS4 Interview Prep BS4 Certificate · All Classes JS Alert JS Button JS Carousel JS Collapse JS Dropdown JS Modal JS Popover JS Scrollspy JS Tab JS Toasts JS Tooltip ... Below we have collected some examples of Bootstrap 4 grid layouts.
🌐
Bootstrap
getbootstrap.com › docs › 5.3 › examples › grid
Grid Template · Bootstrap v5.3
Basic grid layouts to get you familiar with building within the Bootstrap grid system. In these examples the .themed-grid-col class is added to the columns to add some theming.
🌐
Bootstrap
getbootstrap.com › docs › 5.3 › layout › columns
Columns · Bootstrap v5.3
Grid classes are sized to match columns while margins are more useful for quick layouts where the width of the offset is variable. Move columns to the right using .offset-md-* classes. These classes increase the left margin of a column by * columns. For example, .offset-md-4 moves .col-md-4 over four columns.
Find elsewhere
🌐
W3Schools
w3schools.com › bootstrap › bootstrap_grid_large.asp
Bootstrap Grid Example: Large Devices
Now Bootstrap is going to say "at the small size, look at classes with -sm- in them and use those. At the medium size, look at classes with -md- in them and use those. At the large size, look at classes with the word -lg- in them and use those". The following example will result in a 25%/75% split on small devices, a 50%/50% split on medium devices, and a 33%/66% split on large devices:
🌐
MDBootstrap
mdbootstrap.com › standard › grid system
Bootstrap 5 grid system - examples and tutorial
Bootstrap's grid system allows up to 12 columns across the page. We use .col-md-* to create a column, where * specifies the number of columns between 1 and 12. md specifies the breakpoint where the columns change its width. md means "screen ≥768px", so I'm the example below the columns will stretch to 100% of the width on the screens smaller or equal 768px.
🌐
BootstrapDocs
bootstrapdocs.com › v3.3.5 › docs › examples › grid
Bootstrap grid examples - BootstrapDocs
.col-xs-6 .col-sm-3 Resize your viewport or check it out on your phone for an example.
🌐
Bootstrap
getbootstrap.com › docs › 5.0 › forms › layout
Layout · Bootstrap v5.0
Create horizontal forms with the grid by adding the .row class to form groups and using the .col-*-* classes to specify the width of your labels and controls. Be sure to add .col-form-label to your <label>s as well so they’re vertically centered with their associated form controls. At times, you maybe need to use margin or padding utilities to create that perfect alignment you need. For example, we’ve removed the padding-top on our stacked radio inputs label to better align the text baseline.
🌐
Tailwind CSS
tailwindcss.com › docs › grid-template-columns
grid-template-columns - Flexbox & Grid - Tailwind CSS
Use grid-cols-<number> utilities like grid-cols-2 and grid-cols-4 to create grids with n equally sized columns:
🌐
Tutorial Republic
tutorialrepublic.com › twitter-bootstrap-tutorial › bootstrap-grid-system.php
Understanding the Bootstrap 5 Grid System - Tutorial Republic
You can use the Bootstrap's predefined grid classes for quickly making the layouts for different types of devices like mobile phones, tablets, laptops, desktops, and so on. For example, you can use the .col-* classes to create grid columns for extra small devices like mobile phones in portrait mode, and the .col-sm-* classes for mobile phones in landscape mode.
🌐
W3Schools
w3schools.com › bootstrap › bootstrap_grid_system.asp
Bootstrap Grid System
Grid columns are created by specifying the number of 12 available columns you wish to span. For example, three equal columns would use three .col-sm-4 · Column widths are in percentage, so they are always fluid and sized relative to their parent element · The following is a basic structure of a Bootstrap grid:
🌐
Bootstrap
getbootstrap.com › docs › 5.0 › layout › columns
Columns · Bootstrap v5.0
Grid classes are sized to match columns while margins are more useful for quick layouts where the width of the offset is variable. Move columns to the right using .offset-md-* classes. These classes increase the left margin of a column by * columns. For example, .offset-md-4 moves .col-md-4 over four columns.
🌐
GeeksforGeeks
geeksforgeeks.org › bootstrap › bootstrap-grid-system
Bootstrap Grid System - GeeksforGeeks
Prerequisites: Web Development Basics and BootStrap (Part-1) Grid Classes: The Bootstrap grid system has four classes that can be combined to make more flexible layouts:
Published   July 28, 2025
Top answer
1 of 2
359

Bootstrap Version 3.x

As always, read Bootstrap's great documentation:

3.x Docs: https://getbootstrap.com/docs/3.3/css/#grid-nesting

Make sure the parent level row is inside of a .container element. Whenever you'd like to nest rows, just open up a new .row inside of your column.

Here's a simple layout to work from:

<div class="container">
    <div class="row">
        <div class="col-xs-6">
            <div class="big-box">image</div>
        </div>
        <div class="col-xs-6">
            <div class="row">
                <div class="col-xs-6"><div class="mini-box">1</div></div>
                <div class="col-xs-6"><div class="mini-box">2</div></div>
                <div class="col-xs-6"><div class="mini-box">3</div></div>
                <div class="col-xs-6"><div class="mini-box">4</div></div>
            </div>
        </div>
    </div>
</div>

Bootstrap Version 4.0

4.0 Docs: http://getbootstrap.com/docs/4.0/layout/grid/#nesting

Here's an updated version for 4.0, but you should really read the entire docs section on the grid so you understand how to leverage this powerful feature

<div class="container">
  <div class="row">
    <div class="col big-box">
      image
    </div>

    <div class="col">
      <div class="row">
        <div class="col mini-box">1</div>
        <div class="col mini-box">2</div>
      </div>
      <div class="row">
        <div class="col mini-box">3</div>
        <div class="col mini-box">4</div>
      </div>
    </div>

  </div>
</div>

Demo in Fiddle jsFiddle 3.x | jsFiddle 4.0

Which will look like this (with a little bit of added styling):

2 of 2
9

Adding to what @KyleMit said, consider using:

  • col-md-* classes for the larger outer columns
  • col-xs-* classes for the smaller inner columns

This will be useful when you view the page on different screen sizes.

On a small screen, the wrapping of larger outer columns will then happen while maintaining the smaller inner columns, if possible

🌐
Bootsnipp
bootsnipp.com › tags › grid
Bootstrap Grid Examples
Bootstrap 4 Equal Height Cards using Grid · 19 4.1.1 · List - Grid View Example On Button Click using Bootstrap 4 · 13 4.0.0 · Product card, products box, bootstrap 4 ecommerce item grid view · 6 4.1.1 · List - Grid View Example · « · 1 · 2 · 3 · 4 · 5 ·