Responsive Tables
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 | ||
---|---|---|---|---|
![]() |
Henry Harrison | [email protected] | Trial |
|
![]() |
Carl Wells | [email protected] | Personal |
|
![]() |
Ralph Murray | [email protected] | Disabled |
|
![]() |
Jose Wagner | [email protected] | Trial |
|
![]() |
Jeffrey Shaw | [email protected] | Disabled |
|
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 | ||
---|---|---|---|---|
![]() |
Carl Wells | [email protected] | VIP |
|
![]() |
Albert Ray | [email protected] | VIP |
|
![]() |
Carl Wells | [email protected] | Business |
|
![]() |
Wayne Garcia | [email protected] | VIP |
|
![]() |
Jose Wagner | [email protected] | Personal |
|