Bootstrap 5 Layout Examples

Ruth Jul 09, 2026

Bootstrap, the popular CSS framework, has evolved significantly with its fifth iteration, Bootstrap 5. This update brings a host of new features and improvements, including a revamped layout system. If you're looking to create responsive and mobile-first layouts with ease, Bootstrap 5's layout utilities are a game-changer. Let's explore some practical Bootstrap 5 layout examples to help you get started.

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

Before diving into the examples, it's essential to understand that Bootstrap 5 uses a flexbox-based layout system by default. This means that containers, rows, and columns are all built using flexbox, providing a more robust and flexible layout structure.

Bootstrap 5 Website Layout Design
Bootstrap 5 Website Layout Design

Grid System Fundamentals

Bootstrap 5's grid system is built on a 12-column layout, with containers, rows, and columns as its core components. To create a basic grid layout, you'll need to wrap your columns within a row, which in turn is placed inside a container.

Website Landing Page using HTML CSS Bootstrap 5 #3 - Coding Yaar
Website Landing Page using HTML CSS Bootstrap 5 #3 - Coding Yaar

Here's a simple example of a Bootstrap 5 grid layout with three equal-width columns:

<div class="container">
  <div class="row">
    <div class="col">.col</div>
    <div class="col">.col</div>
    <div class="col">.col</div>
  </div>
</div>

Responsive Columns

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

Bootstrap 5's grid system is responsive, meaning it adjusts the layout based on the screen size. You can create responsive columns using the responsive utility classes, such as .col-sm, .col-md, .col-lg, and so on.

Here's an example of creating responsive columns that stack on smaller screens and display side-by-side on larger screens:

<div class="container">
  <div class="row">
    <div class="col-sm-6 col-lg-4">.col-sm-6 .col-lg-4</div>
    <div class="col-sm-6 col-lg-4">.col-sm-6 .col-lg-4</div>
    <div class="col-sm-6 col-lg-4">.col-sm-6 .col-lg-4</div>
  </div>
</div>

Offset and Flex Columns

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

Bootstrap 5 introduces flex columns, which allow you to create more complex layouts with ease. You can use the .offset utility classes to create gutters between columns or use the .flex-column and .flex-row classes to control the direction of flex containers.

Here's an example of using offset and flex columns to create a layout with a sidebar and main content area:

<div class="container">
  <div class="row">
    <div class="col-md-3 offset-md-1">Sidebar</div>
    <div class="col-md-7">
      <div class="row">
        <div class="col-6 flex-column">Main content</div>
        <div class="col-6 flex-column">Another column</div>
      </div>
    </div>
  </div>
</div>

Layout Utilities

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

In addition to the grid system, Bootstrap 5 offers various layout utilities to help you create complex layouts with ease. These utilities include classes for controlling the display, positioning, and alignment of elements.

Here's an example of using the .d-flex and .justify-content-center classes to center a flex container horizontally:

Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5
Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5
Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5
Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5
Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5
Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5
Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5
Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5
Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5
Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5
Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5
Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5
Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5
Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5
Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5
Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5
Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5
Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5
40+ Best Free Bootstrap Templates & Themes in 2026 — Speckyboy
40+ Best Free Bootstrap Templates & Themes in 2026 — Speckyboy
Bootstrap Photo Gallery
Bootstrap Photo Gallery
an image of a web page with many different things on the screen and in the background
an image of a web page with many different things on the screen and in the background
Elite Admin - Bootstrap 5 Dashboard template
Elite Admin - Bootstrap 5 Dashboard template
Lexa - Bootstrap 5 Admin & Dashboard Template
Lexa - Bootstrap 5 Admin & Dashboard Template
Bootstrap 5.3 (2025) Cheat Sheet
Bootstrap 5.3 (2025) Cheat Sheet
100+ Free Bootstrap 5 Templates » CSS Author
100+ Free Bootstrap 5 Templates » CSS Author
Free Bootstrap 5 Admin Dashboard - Kaiadmin Lite
Free Bootstrap 5 Admin Dashboard - Kaiadmin Lite
21 Best Free Bootstrap Website Templates 2026
21 Best Free Bootstrap Website Templates 2026
Best Bootstrap Admin Templates with Horizontal Menu and Tips
Best Bootstrap Admin Templates with Horizontal Menu and Tips
Premium Bootstrap 5 Admin Template | Azia Template
Premium Bootstrap 5 Admin Template | Azia Template

<div class="d-flex justify-content-center">
  <div>Centered content</div>
</div>

Spacers and Gutters

Bootstrap 5 includes spacers and gutters to help you control the space between elements. You can use the .m-, .mt-, .mr-, and other margin-related classes, as well as the .p-, .pt-, .pr-, and other padding-related classes to add space between elements.

Here's an example of using spacers and gutters to create a layout with equal spacing between elements:

<div class="container">
  <div class="row">
    <div class="col">.col</div>
    <div class="col mx-5">.col.mx-5</div>
    <div class="col">.col</div>
  </div>
</div>

In conclusion, Bootstrap 5's layout system offers a wealth of possibilities for creating responsive and flexible layouts. By understanding the fundamentals of the grid system and utilizing the various layout utilities, you can build complex and engaging web designs with ease. Start exploring the Bootstrap 5 layout examples above and let your creativity flow!