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 | ||
---|---|---|---|---|
David Fuller | customer1@example.com | Business |
|
|
Albert Ray | customer2@example.com | VIP |
|
|
Scott Young | customer3@example.com | Trial |
|
|
Ryan Flores | customer4@example.com | Disabled |
|
|
Albert Ray | customer5@example.com | VIP |
|
Partial Table
The second way is to use responsive utility CSS classesfor 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 Accesscolumn isn't visible on small and extra small screens and Emailcolumn isn't visible on extra small screens.
Name | Access | Actions | ||
---|---|---|---|---|
Justin Hunt | client1@example.com | Trial |
|
|
Carl Wells | client2@example.com | Trial |
|
|
Ryan Flores | client3@example.com | Business |
|
|
Brian Stevens | client4@example.com | Business |
|
|
Jose Parker | client5@example.com | VIP |
|