BASIC EXAMPLE
For basic styling—light padding and only horizontal dividers—add the base class table to any table
INVERSE TABLE
You can also invert the colors—with light text on dark backgrounds—with .table-dark.
STRIPED ROWS
Use .table-striped to add zebra-striping to any table row within the tbody
HOVERABLE ROWS
Add .table-hover to enable a hover state on table rows within a tbody.
BORDERED TABLE
Add .table-bordered for borders on all sides of the table and cells.
BORDERED COLOR TABLE
Add .table-bordered & .border-primary can be added to change colors
ALWAYS RESPONSIVE
Across every breakpoint, use .table-responsive for horizontally scrolling tables. Use .table-responsive{-sm|-md|-lg|-xl} as needed to create responsive tables up to a particular breakpoint. From that breakpoint and up, the table will behave normally and not scroll horizontally.
# | Name | Phone | Address | Heading | Heading | Heading | Heading | Heading | |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
info@gmail.com | 1234567890 | 1292 Main Resort, India | Cell | Cell | Cell | Cell | Cell |
2 | ![]() |
info@gmail.com | 1234567890 | 1292 Main Resort, India | Cell | Cell | Cell | Cell | Cell |
3 | ![]() |
info@gmail.com | 1234567890 | 1292 Main Resort, India | Cell | Cell | Cell | Cell | Cell |
# Name Phone Address Heading Heading Heading Heading Heading 1 Semp Port
info@gmail.com 1234567890 1292 Main Resort, India Cell Cell Cell Cell Cell 2 Semp Port
info@gmail.com 1234567890 1292 Main Resort, India Cell Cell Cell Cell Cell 3 Semp Port
info@gmail.com 1234567890 1292 Main Resort, India Cell Cell Cell Cell Cell
ACTIVE TABLES
Highlight a table row or cell by adding a .table-active class.
NESTING
Border styles, active styles, and table variants are not inherited by nested tables.