What happens if the columns in a Bootstrap row add up to more than 12?

<div class="container text-center">
  <div class="row">
    <div class="col-8 border bg-light py-2">col-8</div>
    <div class="col-6 border bg-light py-2">col-6 (wraps to a new line)</div>
    <div class="col-4 border bg-light py-2">col-4</div>
  </div>
</div>
Live preview

The first column takes 8, the second needs 6 (total 14), so it moves to the next line. The third (4) fits next to it. This is useful for some designs, but it is also a common mistake. See Grid System.


Learn more about the similar topics:
Tutorials
Bootstrap Containers
Bootstrap Grid System
Bootstrap Grid: Gutters, Offset, Order and Nesting
Bootstrap Layout Example: Landing Page
Exercises & Assignments
Create a responsive three column layout with Bootstrap
Create a responsive grid of six cards
Interview Questions & Answers
What is the Bootstrap grid system?
What are the breakpoints in Bootstrap 5?
What is the difference between container and container-fluid?
What are row and col classes in Bootstrap?
What is the viewport meta tag and why is it needed for Bootstrap?
What is the mobile first approach in Bootstrap?
What are gutters in the Bootstrap grid?