Basic Table Tables

Basic Table

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

FirstnameLastnameEmail
JohnDoejohn@example.com
MaryMoemary@example.com
JulyDooleyjuly@example.com
Striped Rows

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

FirstnameLastnameEmail
JohnDoejohn@example.com
MaryMoemary@example.com
JulyDooleyjuly@example.com
Bordered Table

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

FirstnameLastnameEmail
JohnDoejohn@example.com
MaryMoemary@example.com
JulyDooleyjuly@example.com
Hover Rows

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

FirstnameLastnameEmail
JohnDoejohn@example.com
MaryMoemary@example.com
JulyDooleyjuly@example.com
Black/Dark Table

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

FirstnameLastnameEmail
JohnDoejohn@example.com
MaryMoemary@example.com
JulyDooleyjuly@example.com
Dark Striped Table

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

FirstnameLastnameEmail
JohnDoejohn@example.com
MaryMoemary@example.com
JulyDooleyjuly@example.com
Hoverable Dark Table

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

FirstnameLastnameEmail
JohnDoejohn@example.com
MaryMoemary@example.com
JulyDooleyjuly@example.com
Borderless Table

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

FirstnameLastnameEmail
JohnDoejohn@example.com
MaryMoemary@example.com
JulyDooleyjuly@example.com
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
DefaultDefaultsondef@somemail.com
PrimaryJoejoe@example.com
SuccessDoejohn@example.com
DangerMoemary@example.com
InfoDooleyjuly@example.com
WarningRefsbo@example.com
ActiveActivesonact@example.com
SecondarySecondsonsec@example.com
LightAngieangie@example.com
DarkBobo@example.com
Small Table

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

FirstnameLastnameEmail
JohnDoejohn@example.com
MaryMoemary@example.com
JulyDooleyjuly@example.com
ActiveActivesonact@example.com
InfoDooleyjuly@example.com
Small Table With Background

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

FirstnameLastnameEmail
JohnDoejohn@example.com
MaryMoemary@example.com
JulyDooleyjuly@example.com
ActiveActivesonact@example.com
ActiveActivesonact@example.com