Tables

Tables can be used to arrange data like text, images, links and other elements into rows and columns.

Styling

Basic table

For basic styling—light padding and only horizontal dividers—add the base class .table to any <table>.

# First Name Last Name Username
1 Mark Otto @mdo
2 Jacob Thornton @fat
3 Larry the Bird @twitter
Default table

Striped table

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

# First Name Last Name Username
1 Mark Otto @mdo
2 Jacob Thornton @fat
3 Larry the Bird @twitter
Striped table

Banded table

Use .table-banded to add bands to any table within the <tbody>.

# First Name Last Name Username
1 Mark Otto @mdo
2 Jacob Thornton @fat
3 Larry the Bird @twitter
Banded table

Bordered table

Use .table-bordered to display the vertical borders in a <table>.

# First Name Last Name Username
1 Mark Otto @mdo
Mark Otto @TwBootstrap
2 Jacob Thornton @fat
3 Larry the Bird @twitter
Bordered table

Condensed table

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

# First Name Last Name Username
1 Mark Otto @mdo
2 Jacob Thornton @fat
3 Larry the Bird @twitter
4 Laurie Hart @lau
5 Kristin Poole @kri
6 Melvin Vega @vega
Condensed table

Contextual table

Use contextual classes to color table rows or individual cells.

  • .info Indicates a neutral informative change or action
  • .danger Indicates a dangerous or potentially negative action
  • .warning Indicates a warning that might need attention
  • .success Indicates a successful or positive action
  • .active Applies the hover color to a particular row or cell
# Column heading Column heading Column heading
1 Column content Column content Column content
2 Column content Column content Column content
3 Column content Column content Column content
4 Column content Column content Column content
5 Column content Column content Column content
6 Column content Column content Column content
Contextual table

Dark background

If you want to, you can place a table on a dark background

# First Name Last Name Username
1 Mark Otto @mdo
2 Jacob Thornton @fat
3 Larry the Bird @twitter
Table on a dark background

Table hover

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

Status First Name Last Name Summary Actions
Abbey Johnson Fuisset delicatissimi duo, qui ut animal noluisse erroribus.
Alex Nelson Ea eum veniam audire. Dicant vituperata consequuntur.
Mary Peterson Per at postea mediocritatem, vim numquam aliquid eu, in nam sale gubergren.
Chat with Ann Laurens
  • Yes, it is indeed very beautiful. 10:03 pm
  • Did you see the changes? 10:02 pm
  • I just arrived at work, it was quite busy. 06:44pm
    I will take look in a minute. 06:45pm
  • The colors are much better now.
    The colors are brighter than before. I have already sent an example. This will make it look sharper. Mon
  • Are the colors of the logo already adapted? Last week