Create responsive tables by wrapping any .table
in .table-responsive
to make them scroll horizontally on small devices (under 768px). When viewing on anything larger than 768px wide, you will not see any difference in these tables.
# | First Name | Last Name | Office | Salary | |
---|---|---|---|---|---|
1 | Mark | Otto | [email protected] | London | $45,000 |
2 | Jacob | Thornton | [email protected] | Tokyo | $25,300 |
3 | Anna | Bird | [email protected] | Edinburgh | $15,200 |
4 | John | Doe | [email protected] | Warsaw | $12,950 |
5 | Veronica | Moon | [email protected] | New York | $6,950 |
Add .table-bordered
for borders on all sides of the table and cells.
# | First Name | Last Name | Office | Salary | |
---|---|---|---|---|---|
1 | Mark | Otto | [email protected] | London | $45,000 |
2 | Jacob | Thornton | [email protected] | Tokyo | $25,300 |
3 | Anna | Bird | [email protected] | Edinburgh | $15,200 |
4 | John | Doe | [email protected] | Warsaw | $12,950 |
5 | Veronica | Moon | [email protected] | New York | $6,950 |