Default tables

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

<table class="table">
  …
</table>
# First Name Last Name Username
1 Mark Otto @mdo
2 Jacob Thornton @fat
3 Larry the Bird @twitter

Striped tables

.table-striped adds zebra-striping to any table row within the <tbody> via the :nth-child CSS selector (not available in IE7-IE8).

<table class="table table-striped">
  …
</table>
# First Name Last Name Username
1 Mark Otto @mdo
2 Jacob Thornton @fat
3 Larry the Bird @twitter

Bordered tables

.table-bordered add borders and rounded corners to the table.

<table class="table table-bordered">
  …
</table>
# First Name Last Name Username
1 Mark Otto @mdo
Mark Otto @TwBootstrap
2 Jacob Thornton @fat
3 Larry the Bird @twitter

Hover state on table rows

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

<table class="table table-hover">
  …
</table>
# First Name Last Name Username
1 Mark Otto @mdo
2 Jacob Thornton @fat
3 Larry the Bird @twitter

Compact tables

.table-condensed makes tables more compact by cutting cell padding in half.

<table class="table table-condensed">
  …
</table>
# First Name Last Name Username
1 Mark Otto @mdo
2 Jacob Thornton @fat
3 Larry the Bird @twitter