Why Do We Need Responsive Columns?
A layout with four columns looks great on a laptop but is too tight on a phone. With responsive grid classes, the same HTML shows four columns on a laptop, two on a tablet and one on a phone.
How the Class Names Work
The pattern is col-{breakpoint}-{number}. The breakpoint says from which screen size the number should apply.
| Class | Applies From | Meaning |
|---|---|---|
col-6 | All sizes | Always half width |
col-sm-6 | 576px | Half width from small up, stacked below |
col-md-6 | 768px | Half width from medium up |
col-lg-6 | 992px | Half width from large up |
col-xl-6 | 1200px | Half width from extra large up |
col-xxl-6 | 1400px | Half width from xxl up |
Example 1: Stack on Phone, Side by Side on Tablet
On a phone, Left is above Right. On a screen 768px or wider they sit side by side.
Example 2: Four Cards Layout
| Screen | Cards per row |
|---|---|
| Phones (below 576px) | 1 (col-12) |
| Small and medium (576px to 991px) | 2 (col-sm-6) |
| Large and up (992px+) | 4 (col-lg-3) |
Example 3: Content and Sidebar
The sidebar goes below the main content on phones and tablets, and moves to the right side on large screens.
Mixing Classes
You can combine several breakpoints on the same element. Bootstrap applies the largest one that matches the current screen.
Tips for Choosing Breakpoints
- Start with the phone layout (no prefix), usually
col-12 - Add
mdfor tablets, where two columns often fit well - Add
lgfor desktops - You rarely need all five breakpoints in one element
Common Mistakes
- Using
col-md-6and expecting the layout to change on phones - Writing
col-6-mdinstead ofcol-md-6(the prefix order matters) - Using too many breakpoint classes, making the code hard to read
Conclusion
Responsive grid classes let one HTML page adapt to every device. Remember to think mobile first and add bigger breakpoints only when the design needs it.

