What is the Bootstrap grid system?

The grid divides the width of a row into 12 columns. You put columns (.col-*) inside a row (.row), and the row inside a container. The numbers of one line should add up to 12. With breakpoints (col-md-6) the layout changes on different screen sizes.

<div class="container text-center">
  <div class="row">
    <div class="col-12 col-md-8 border bg-light py-2">col-md-8</div>
    <div class="col-12 col-md-4 border bg-light py-2">col-md-4</div>
  </div>
</div>
Live preview

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?