Tables

Tables styling

Default

# First Name Last Name Username
1 Mark Otto @mdo
2 Jacob Thornton @fat
3 Larry the Bird @twitter
<table>
  <thead>
    <tr>
      <th>#</th>
      <th>First Name</th>
      <th>Last Name</th>
      <th>Username</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <th scope="row">1</th>
      <td>Mark</td>
      <td>Otto</td>
      <td>@mdo</td>
    </tr>
    <tr>
      <th scope="row">2</th>
      <td>Jacob</td>
      <td>Thornton</td>
      <td>@fat</td>
    </tr>
    <tr>
      <th scope="row">3</th>
      <td>Larry</td>
      <td>the Bird</td>
      <td>@twitter</td>
    </tr>
  </tbody>
</table>

Striped

# First Name Last Name Username
1 Mark Otto @mdo
2 Jacob Thornton @fat
3 Larry the Bird @twitter
<table class="table-striped">
  <thead>
    <tr>
      <th>#</th>
      <th>First Name</th>
      <th>Last Name</th>
      <th>Username</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <th scope="row">1</th>
      <td>Mark</td>
      <td>Otto</td>
      <td>@mdo</td>
    </tr>
    <tr>
      <th scope="row">2</th>
      <td>Jacob</td>
      <td>Thornton</td>
      <td>@fat</td>
    </tr>
    <tr>
      <th scope="row">3</th>
      <td>Larry</td>
      <td>the Bird</td>
      <td>@twitter</td>
    </tr>
  </tbody>
</table>

Responsive

Use the .table-responsive-* to make the table overflow and scrollable at a specific breakpoint.

#First NameLast NameUsernameFirst NameLast NameUsername
1MarkOtto@mdoMarkOtto@mdo
2JacobThornton@fatJacobThornton@fat
3Larrythe Bird@twitterLarrythe Bird@twitter
<table class="table-striped table-responsive-md">
  <thead>
    <tr>
      <th>#</th><th>First Name</th><th>Last Name</th><th>Username</th><th>First Name</th><th>Last Name</th><th>Username</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <th scope="row">1</th><td>Mark</td><td>Otto</td><td>@mdo</td><td>Mark</td><td>Otto</td><td>@mdo</td>
    </tr>
    <tr>
      <th scope="row">2</th><td>Jacob</td><td>Thornton</td><td>@fat</td><td>Jacob</td><td>Thornton</td><td>@fat</td>
    </tr>
    <tr>
      <th scope="row">3</th><td>Larry</td><td>the Bird</td><td>@twitter</td><td>Larry</td><td>the Bird</td><td>@twitter</td>
    </tr>
  </tbody>
</table>