Basic Table For basic styling—light padding and only horizontal dividers—add the base class .table to any <table>. It may seem super redundant, but given the widespread use of tables for other plugins like calendars and date pickers, we've opted to isolate our custom table styles.
# First Name Last Name Username Nickname
1 John Doe [email protected] JD
2 John Doe [email protected] JD
3 John Doe [email protected] JD
4 John Doe [email protected] JD
5 John Doe [email protected] JD
Responsive Table 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 Username Nickname
1 John Doe [email protected] JD
2 John Doe [email protected] JD
3 John Doe [email protected] JD
4 John Doe [email protected] JD
5 John Doe [email protected] JD
Bordered Table Add .table-bordered for borders on all sides of the table and cells.
# First Name Last Name Username Nickname
1 John Doe [email protected] JD
2 John Doe [email protected] JD
3 John Doe [email protected] JD
4 John Doe [email protected] JD
5 John Doe [email protected] JD
Striped Rows Use .table-striped to add zebra-striping to any table row within the <tbody>
# First Name Last Name Username Nickname
1 John Doe [email protected] JD
2 John Doe [email protected] JD
3 John Doe [email protected] JD
4 John Doe [email protected] JD
5 John Doe [email protected] JD
Hover Rows Add .table-hover to enable a hover state on table rows within a <tbody>
# First Name Last Name Username Nickname
1 John Doe [email protected] JD
2 John Doe [email protected] JD
3 John Doe [email protected] JD
4 John Doe [email protected] JD
5 John Doe [email protected] JD
Condensed Table Add .table-condensed to make tables more compact by cutting cell padding in half
# First Name Last Name Username Nickname
1 John Doe [email protected] JD
2 John Doe [email protected] JD
3 John Doe [email protected] JD
4 John Doe [email protected] JD
5 John Doe [email protected] JD
Custom Headers Make your Tables more colorfull by adding background color classes on table headers.
No. First Name Last Name Username
1 John Doe [email protected]
2 John Doe [email protected]
3 John Doe [email protected]
No. First Name Last Name Username
1 John Doe [email protected]
2 John Doe [email protected]
3 John Doe [email protected]
No. First Name Last Name Username
1 John Doe [email protected]
2 John Doe [email protected]
3 John Doe [email protected]
No. First Name Last Name Username
1 John Doe [email protected]
2 John Doe [email protected]
3 John Doe [email protected]