Bootstrap CSS Classes

Bootstrap CSS class .table-sm

<table class="table table-sm">
  <thead>
    <tr>
      <th>#</th>
      <th>First Name</th>
      <th>Last Name</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <th scope="row">1</th>
      <td>Mark</td>
      <td>Otto</td>
    </tr>
    <tr>
      <th scope="row">2</th>
      <td>Jacob</td>
      <td>Thornton</td>
    </tr>
  </tbody>
</table>

Preview

Are you tired of writing HTML by hand?

CSS source

/* _tables.scss:36 */
.table-sm {
  th,
  td {
    padding: $table-cell-padding-sm;
  }
}

More Bootstrap CSS classes in Tables category

© 2024 Shuffle. All rights reserved.