Mobile responsiveness for Bootstrap 5 tables.
- Download Bootstrap 5.
- Copy
Responsive-Table.css
into your styles to your styles folder. - Add a link in your
<head>
.
- Add
table-mobile-responsive
to your table's classes - Add a
data-content
attribute to each<tr>
element (e.g.<tr data-content="First name">
). - Add any of the built-in styled classes
- Responsive tables
- Table Captions
- Multiple responsive layouts
- Striped tables
- Easily editable CSS variables
See it in action with this Demo