Basic Table

Using the most basic table markup, here’s how .table-based tables look in Bootstrap.

NamePhone NumberDate of BirthActions
Vanessa Tucker864-348-0485June 21, 1961
William Harris914-939-2458May 15, 1948
Sharon Lessman704-993-5435September 14, 1965
Christina Mason765-382-8195April 2, 1971
Robin Schneiders202-672-1407October 12, 1966

Striped Rows

Use .table-striped to add zebra-striping to any table row within the <tbody>.

NamePhone NumberDate of BirthActions
Vanessa Tucker864-348-0485June 21, 1961
William Harris914-939-2458May 15, 1948
Sharon Lessman704-993-5435September 14, 1965
Christina Mason765-382-8195April 2, 1971
Robin Schneiders202-672-1407October 12, 1966

Condensed Table

Add .table-sm to make tables more compact by cutting cell padding in half.

Operating systemUsersShare
Windows8,23238.0%
macOS4,10819.0%
Android3,95018.3%
iOS3,31715.3%
Linux1,1845.5%
ChromeOS6423.0%
Other2050.9%

Hoverable Rows

Add .table-hover to enable a hover state on table rows within a <tbody>.

NamePhone NumberDate of Birth
Vanessa Tucker864-348-0485June 21, 1961
William Harris914-939-2458May 15, 1948
Sharon Lessman704-993-5435September 14, 1965
Christina Mason765-382-8195April 2, 1971

Bordered Table

Add .table-bordered for borders on all sides of the table and cells.

NamePhone NumberDate of BirthActions
Vanessa Tucker864-348-0485June 21, 1961
William Harris914-939-2458May 15, 1948
Sharon Lessman704-993-5435September 14, 1965
Christina Mason765-382-8195April 2, 1971
Robin Schneiders202-672-1407October 12, 1966

Contextual Classes

Use contextual classes to color table rows or individual cells.

NamePhone NumberDate of BirthActions
Vanessa Tucker864-348-0485June 21, 1961
William Harris914-939-2458May 15, 1948
Sharon Lessman704-993-5435September 14, 1965
Christina Mason765-382-8195April 2, 1971
Robin Schneiders202-672-1407October 12, 1966

Always responsive

Across every breakpoint, use .table-responsive for horizontally scrolling tables.

#HeadingHeadingHeadingHeadingHeadingHeadingHeadingHeadingHeading
1CellCellCellCellCellCellCellCellCell
2CellCellCellCellCellCellCellCellCell
3CellCellCellCellCellCellCellCellCell