For basic styling—light padding and only horizontal dividers—add the base class .tableto any <table>.
| # | Name | Access | |
|---|---|---|---|
| 1 | Mark | [email protected] | Business |
| 2 | Jacob | [email protected] | Personal |
| 3 | Larry | [email protected] | Disabled |
Add .table-borderedfor borders on all sides of the table and cells.
| # | First Name | Last Name | Username |
|---|---|---|---|
| 1 | Mark | Otto | @mdo |
| 2 | Mark | Otto | @TwBootstrap |
| 3 | Larry the Bird | ||
Use .table-stripedto add zebra-striping to any table row within the <tbody>.
| # | Name | Closed items | Open Items | process |
|---|---|---|---|---|
| 1 | IOS | 5 60% | 3 40% | |
| 2 | Crypto | 3 65% | 2 35% | |
| 3 | Web | 4 88% | 1 12% |
Use one of two modifier classes to make <thead>s appear light or dark gray.
| # | Name | Access | Action | |
|---|---|---|---|---|
| 1 | Mark | [email protected] | Business | |
| 2 | Jacob | [email protected] | Personal | |
| 3 | Larry | [email protected] | Disabled |
Your awesome text goes here.
| # | First Name | Last Name | Username |
|---|---|---|---|
| 1 | Mark | Otto | @mdo |
| 2 | Jacob | Thornton | @fat |
| 3 | Larry | the Bird |
Use contextual classes to color table rows or individual cells.
| # | First Name | Last Name | Username |
|---|---|---|---|
| 1 | Mark | Otto | @mdo |
| 2 | Larry | the Bird | |
| 3 | Jacob | Thornton | @fat |