Basic Table Tables

Basic Table

The .table class adds basic styling (light padding and horizontal dividers) to a table:

FirstnameLastnameEmail
JohnDoe[email protected]
MaryMoe[email protected]
JulyDooley[email protected]
Striped Rows

The .table-striped class adds zebra-stripes to a table:

FirstnameLastnameEmail
JohnDoe[email protected]
MaryMoe[email protected]
JulyDooley[email protected]
Bordered Table

The .table-bordered class adds borders on all sides of the table and the cells:

FirstnameLastnameEmail
JohnDoe[email protected]
MaryMoe[email protected]
JulyDooley[email protected]
Hover Rows

The .table-hover class enables a hover state (grey background on mouse over) on table rows:

FirstnameLastnameEmail
JohnDoe[email protected]
MaryMoe[email protected]
JulyDooley[email protected]
Black/Dark Table

The .table-dark class adds a black background to the table:

FirstnameLastnameEmail
JohnDoe[email protected]
MaryMoe[email protected]
JulyDooley[email protected]
Dark Striped Table

Combine .table-dark and .table-striped to create a dark, striped table:

FirstnameLastnameEmail
JohnDoe[email protected]
MaryMoe[email protected]
JulyDooley[email protected]
Hoverable Dark Table

The .table-hover class adds a hover effect (grey background color) on table rows:

FirstnameLastnameEmail
JohnDoe[email protected]
MaryMoe[email protected]
JulyDooley[email protected]
Borderless Table

The .table-borderless class removes borders from the table:

FirstnameLastnameEmail
JohnDoe[email protected]
MaryMoe[email protected]
JulyDooley[email protected]
Contextual Classes

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:

FirstnameLastnameEmail
DefaultDefaultson[email protected]
PrimaryJoe[email protected]
SuccessDoe[email protected]
DangerMoe[email protected]
InfoDooley[email protected]
WarningRefs[email protected]
ActiveActiveson[email protected]
SecondarySecondson[email protected]
LightAngie[email protected]
DarkBo[email protected]
Small Table

The .table-sm class makes the table smaller by cutting cell padding in half:

FirstnameLastnameEmail
JohnDoe[email protected]
MaryMoe[email protected]
JulyDooley[email protected]
ActiveActiveson[email protected]
InfoDooley[email protected]
Small Table With Background

The classes used are: .swatch-blue, .swatch-indigo, .swatch-red, .swatch-pink, .swatch-cyan

FirstnameLastnameEmail
JohnDoe[email protected]
MaryMoe[email protected]
JulyDooley[email protected]
ActiveActiveson[email protected]
ActiveActiveson[email protected]