For basic styling—light padding and only horizontal dividers—add the base class .table
to any <table>
.
# | First Name | Last Name | Username |
---|---|---|---|
1 | Pero | Kurobola | @mdo |
2 | Laze | Dudevski | @fat |
3 | David | Kuzman |
You can also invert the colors—with light text on dark backgrounds—with .table-dark
.
# | First Name | Last Name | Username |
---|---|---|---|
1 | Pero | Kurobola | @mdo |
2 | Laze | Dudevski | @fat |
3 | David | Kuzman |
Use one of two modifier classes to make <thead>
s appear light or dark gray.
# | First Name | Last Name | Username |
---|---|---|---|
1 | Pero | Kurobola | @mdo |
2 | Laze | Dudevski | @fat |
3 | David | Kuzman |
Use .table-striped
to add zebra-striping to any table row within the <tbody>
.
# | First Name | Last Name | Username |
---|---|---|---|
1 | Pero | Kurobola | @mdo |
2 | Laze | Dudevski | @fat |
3 | David | Kuzman |
Add .table-bordered
for borders on all sides of the table and cells.
# | First Name | Last Name | Username |
---|---|---|---|
1 | Pero | Kurobola | @mdo |
2 | Pero | Kurobola | @TwBootstrap |
3 | Laze | Dudevski | @fat |
4 | David Kuzman |
Create responsive tables by wrapping any .table
in .table-responsive
to make them scroll horizontally on small devices(under 768px).
# | First Name | Last Name | Username |
---|---|---|---|
1 | Pero | Kurobola | @mdo |
2 | Laze | Dudevski | @fat |
3 | David Kuzman |
Add .table-sm
to make tables more compact by cutting cell padding in half.
# | First Name | Last Name | Username |
---|---|---|---|
1 | Pero | Kurobola | @mdo |
2 | Laze | Dudevski | @fat |
3 | David Kuzman | ||
4 | Column content | Column content | Column content |
5 | Column content | Column content | Column content |
6 | Column content | Column content | Column content |
7 | Column content | Column content | Column content |
8 | Column content | Column content | Column content |
9 | Column content | Column content | Column content |
Use contextual classes to color table rows or individual cells.
# | Column heading | Column heading | Column heading |
---|---|---|---|
1 | Column content | Column content | Column content |
2 | Column content | Column content | Column content |
3 | Column content | Column content | Column content |
4 | Column content | Column content | Column content |
5 | Column content | Column content | Column content |
6 | Column content | Column content | Column content |
7 | Column content | Column content | Column content |
8 | Column content | Column content | Column content |
9 | Column content | Column content | Column content |
Similar to tables and dark tables,use the modifier classes .thead-light
or .thead-dark
to make <thead>
s appear light or dark gray.
# | First Name | Last Name | Username |
---|---|---|---|
1 | Pero | Kurobola | @mdo |
2 | Laze | Dudevski | @fat |
3 | David | Kuzman |
You can also invert the colors—with light text on dark backgrounds—with .table-dark
.
# | First Name | Last Name | Username |
---|---|---|---|
1 | Pero | Kurobola | @mdo |
2 | Laze | Dudevski | @fat |
3 | David | Kuzman |
For basic styling—light padding and only horizontal dividers—add the base class .table
to any <table>
.
# | First Name | Last Name | Username |
---|---|---|---|
1 | Pero | Kurobola | @mdo |
2 | Laze | Dudevski | @fat |
3 | David | Kuzman |
Your awesome text goes here.Your awesome text goes here.
# | First Name | Last Name | Username |
---|---|---|---|
1 | Pero | Kurobola | @mdo |
2 | Laze | Dudevski | @fat |
3 | David | Kuzman |