Bootstrap 5 responsive tables handle data display across all screen sizes. This page covers 4 responsive table patterns — horizontal scroll, breakpoints, fixed column and card view on mobile.
Quick Setup
Responsive tables need only Bootstrap 5 CSS:
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet"/>
Key Classes Reference
| Class | What It Does |
|---|---|
.table-responsive | Always scrolls horizontally |
.table-responsive-sm | Scrolls below 576px |
.table-responsive-md | Scrolls below 768px |
.table-responsive-lg | Scrolls below 992px |
.table-responsive-xl | Scrolls below 1200px |
position: sticky; left: 0 | Fixes a column while scrolling |
overflow-x: auto | The CSS property that enables scrolling |
1. Bootstrap 5 Responsive Table (Horizontal Scroll)
Wrap any table in table-responsive to enable horizontal scrolling on small screens. The table keeps its full layout.
2. Bootstrap 5 Responsive Table Breakpoints
Use table-responsive-{breakpoint} to only scroll below a specific screen size.
3. Bootstrap 5 Responsive Table with Fixed First Column
A responsive table where the first column stays fixed while other columns scroll horizontally.
4. Bootstrap 5 Table to Card View on Mobile
Table that converts to stacked card layout on mobile using CSS. Each row becomes a card.
Frequently Asked Questions
Need a Full Bootstrap 5 Admin Dashboard?
Get a complete Angular 21 + Bootstrap 5 dashboard with 50+ components — built by the same team behind BootstrapPlanet.
Browse Templates →Use code FIRST30 for 30% off your first purchase.