# Bootstrap 5 Table * The .table class adds basic styling to a table: A basic Bootstrap 5 table has a light padding and horizontal dividers. * Basic table: The .table class adds basic styling to a table: * The .table-bordered class adds borders on all sides of the table and cells: * The .table-borderless class removes borders from the table: * The .table-striped class adds zebra-stripe rows to a table: * 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: * The .table-hover class adds a hover effect (grey background color) on table rows: * The .table-sm class makes the table smaller by cutting cell padding in half: * The .table-responsive class adds a scrollbar to the table when needed (when it is too big horizontally): * You can also decide when the table should get a scrollbar, depending on the screen width: - Class Screen width - .table-responsive-sm < 576px - .table-responsive-md < 768px - .table-responsive-lg < 992px - .table-responsive-xl < 1200px - .table-responsive-xxl < 1400px
...

Striped Rows

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

Firstname Lastname Email
John Doe john@example.com
Mary Moe mary@example.com
July Dooley july@example.com
Service Contract no. Additional information Active since Renews on
Service Contract no. Additional information Active since Renews on
98581085 Free contract 10/26/2023 -
98581086 10/26/2023 10/25/2024
98581086 External domain 10/27/2023 -
100022315 01/29/2024 01/28/2025
102121974 07/01/2024 06/30/2025

Bordered Table

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

Firstname Lastname Email
John Doe john@example.com
Mary Moe mary@example.com
July Dooley july@example.com