Tables
Table Basic
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 |
|
Table Head Options
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 |
|
Table Striped
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 |
|
Table Bordered
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 |
|
Table Bordered Color
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 |
|
Table Borderless
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 |
|
Table Hover
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 |
|
Nesting
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 |
|
|||||||||||||||||
Table Active
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 |
|
Table Small
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 |
|