For basic styling—light padding and only horizontal dividers—add the base class .tableto 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-stripedto 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-borderedfor 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 .tablein .table-responsiveto 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-smto 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-lightor .thead-darkto 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 .tableto 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 |