Bootstrap 5 UI Tutorial

Build fast, responsive sites with Bootstrap 5

BS5 Tables

Bootstrap 5 Tables

A basic Bootstrap 5 table has a light padding and horizontal dividers.

Table Classes:

  • .table - Basic styling
  • .table-striped - Adds zebra-striping to rows
  • .table-bordered - Adds borders on all sides of the table and cells
  • .table-hover - Adds a hover effect (grey background color) on table rows
  • .table-dark - Adds a black background to the table

Try It Yourself

Edit the code below and click Run to see the result live.

Source Code
Result
Topics