Responsive Tables
Mobile friendly tables that work across all screen sizes.
Full Table
The first way to make a table responsive, is to wrap it with <div class="table-responsive"></div>
. This way the table will be horizontally scrollable and all data will be accessible on smaller screens (< 768px).
Name | Access | Actions | ||
---|---|---|---|---|
![]() |
Jack Greene | customer1@example.com | Business |
|
![]() |
Jack Estrada | customer2@example.com | Disabled |
|
![]() |
Brian Stevens | customer3@example.com | Personal |
|
![]() |
Wayne Garcia | customer4@example.com | Personal |
|
![]() |
Scott Young | customer5@example.com | Trial |
|
Partial Table
The second way is to use responsive utility CSS classes for hiding columns in various screen resolutions. This way you can hide less important columns and keep the most valuable on smaller screens. At the following example the Access column isn't visible on small and extra small screens and Email column isn't visible on extra small screens.
Name | Access | Actions | ||
---|---|---|---|---|
![]() |
Albert Ray | client1@example.com | Disabled |
|
![]() |
Ryan Flores | client2@example.com | VIP |
|
![]() |
Henry Harrison | client3@example.com | Disabled |
|
![]() |
Albert Ray | client4@example.com | Disabled |
|
![]() |
Brian Cruz | client5@example.com | Personal |
|