Just add the base class .table to any <table>, then extend with custom styles.
| Project name | Due Date | priority | Members | Actions |
|---|---|---|---|---|
| June 2 | Medium | |||
| June 12 | High | |||
| Aug 14 | Low | |||
| Sept 20 | Medium |
Use the modifier classes .table-light to make <thead> appear light gray.
| Project name | Due Date | priority | Members | Actions |
|---|---|---|---|---|
| June 2 | Medium | |||
| June 12 | High | |||
| Aug 14 | Low | |||
| Sept 20 | Medium |
Use .table-striped to add zebra-striping to any table row within the <tbody>.
| Project name | Due Date | priority | Members | Actions |
|---|---|---|---|---|
| June 2 | Medium | |||
| June 12 | High | |||
| Aug 14 | Low | |||
| Sept 20 | Medium |
Add .table-bordered for borders on all sides of the table and cells.
| Project name | Due Date | priority | Members | Actions |
|---|---|---|---|---|
| June 2 | Medium | |||
| June 12 | High | |||
| Aug 14 | Low | |||
| Sept 20 | Medium |
Border color utilities like .border-* be added to change colors.
| Project name | Due Date | priority | Members | Actions |
|---|---|---|---|---|
| June 2 | Medium | |||
| June 12 | High | |||
| Aug 14 | Low | |||
| Sept 20 | Medium |
Add .table-borderless for a table without borders.
| Project name | Due Date | priority | Members | Actions |
|---|---|---|---|---|
| June 2 | Medium | |||
| June 12 | High | |||
| Aug 14 | Low | |||
| Sept 20 | Medium |
Add .table-hover to enable a hover state on table rows within a <tbody>.
| Project name | Due Date | priority | Members | Actions |
|---|---|---|---|---|
| June 2 | Medium | |||
| June 12 | High | |||
| Aug 14 | Low | |||
| Sept 20 | Medium |
Border styles, active styles, and table variants are not inherited by nested tables..
| Project name | Due Date | priority | Members | Actions | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| June 2 | Medium | ||||||||||||||||||
|
|||||||||||||||||||
| Sept 20 | Medium | ||||||||||||||||||
Highlight a table row or cell by adding a .table-active class.
| Project name | Due Date | priority | Members | Actions |
|---|---|---|---|---|
| June 2 | Medium | |||
| June 12 | High | |||
| Aug 14 | Low | |||
| Sept 20 | Medium |
Add .table-sm to make tables more compact by cutting cell padding in half.
| Project name | Due Date | priority | Members | Actions |
|---|---|---|---|---|
| June 2 | Medium | |||
| June 12 | High | |||
| Aug 14 | Low | |||
| Sept 20 | Medium |