City of Tampa Style Guide

Tables 3.8

Toggle example guides Toggle HTML markup

A table shows tabular data in columns and rows. Any <table>, then extend with custom styles or our various included modifier classes.

When to use: Tabular data. When you need tabular information, such as statistical data.

When not to: Non-tabular data. Depending on the type of content, consider using other presentation formats such as definition lists or hierarchical lists.

Notes: Details at Bootstrap Table Docs

<insert-markup>content.tables-</insert-markup>
# First Last Handle
1 Mark Otto @mdo
2 Jacob Thornton @fat
3 Larry the Bird @twitter
<table class="table table-hover table-sm">
  <thead class="thead-dark">
    <tr>
      <th scope="col">#</th>
      <th scope="col">First</th>
      <th scope="col">Last</th>
      <th scope="col">Handle</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>
Source: src/scss/base/_tables.scss, line 1