The .table class adds basic styling (light padding and horizontal dividers) to a table:
| Firstname | Lastname | |
|---|---|---|
| John | Doe | john@example.com | 
| Mary | Moe | mary@example.com | 
| July | Dooley | july@example.com | 
The .table-striped class adds zebra-stripes to a table:
| Firstname | Lastname | |
|---|---|---|
| John | Doe | john@example.com | 
| Mary | Moe | mary@example.com | 
| July | Dooley | july@example.com | 
The .table-bordered class adds borders on all sides of the table and the cells:
| Firstname | Lastname | |
|---|---|---|
| John | Doe | john@example.com | 
| Mary | Moe | mary@example.com | 
| July | Dooley | july@example.com | 
The .table-hover class enables a hover state (grey background on mouse over) on table rows:
| Firstname | Lastname | |
|---|---|---|
| John | Doe | john@example.com | 
| Mary | Moe | mary@example.com | 
| July | Dooley | july@example.com | 
The .table-dark class adds a black background to the table:
| Firstname | Lastname | |
|---|---|---|
| John | Doe | john@example.com | 
| Mary | Moe | mary@example.com | 
| July | Dooley | july@example.com | 
Combine .table-dark and .table-striped to create a dark, striped table:
| Firstname | Lastname | |
|---|---|---|
| John | Doe | john@example.com | 
| Mary | Moe | mary@example.com | 
| July | Dooley | july@example.com | 
The .table-hover class adds a hover effect (grey background color) on table rows:
| Firstname | Lastname | |
|---|---|---|
| John | Doe | john@example.com | 
| Mary | Moe | mary@example.com | 
| July | Dooley | july@example.com | 
The .table-borderless class removes borders from the table:
| Firstname | Lastname | |
|---|---|---|
| John | Doe | john@example.com | 
| Mary | Moe | mary@example.com | 
| July | Dooley | july@example.com | 
Contextual classes can be used to color the table, table rows or table cells. The classes that can be used are: .table-primary, .table-success, .table-info, .table-warning, .table-danger, .table-active, .table-secondary, .table-light and .table-dark:
| Firstname | Lastname | |
|---|---|---|
| Default | Defaultson | def@somemail.com | 
| Primary | Joe | joe@example.com | 
| Success | Doe | john@example.com | 
| Danger | Moe | mary@example.com | 
| Info | Dooley | july@example.com | 
| Warning | Refs | bo@example.com | 
| Active | Activeson | act@example.com | 
| Secondary | Secondson | sec@example.com | 
| Light | Angie | angie@example.com | 
| Dark | Bo | bo@example.com | 
The .table-sm class makes the table smaller by cutting cell padding in half:
| Firstname | Lastname | |
|---|---|---|
| John | Doe | john@example.com | 
| Mary | Moe | mary@example.com | 
| July | Dooley | july@example.com | 
| Active | Activeson | act@example.com | 
| Info | Dooley | july@example.com | 
The classes used are: .swatch-blue, .swatch-indigo, .swatch-red, .swatch-pink, .swatch-cyan
| Firstname | Lastname | |
|---|---|---|
| John | Doe | john@example.com | 
| Mary | Moe | mary@example.com | 
| July | Dooley | july@example.com | 
| Active | Activeson | act@example.com | 
| Active | Activeson | act@example.com |