Basic tables Documentation and examples for opt-in styling of tables (given their prevelant use in JavaScript plugins) with Bootstrap.

Basic Tables

Using the most basic table markup, here’s how .table-based tables look in SmartAdmin. You can inverse a table by using the class .table-dark
Default
#First NameLast NameUsername
1MarkOtto@mdo
2JacobThornton@fat
3Larrythe Bird@twitter
4Larry the Bird@twitter
Inverse
#First NameLast NameUsername
1MarkOtto@mdo
2JacobThornton@fat
3Larrythe Bird@twitter

Table head

Similar to default and inverse tables, use one of two modifier classes to make <thead>s appear custom, dark gray, white and themed.
Inverse
#First NameLast NameUsername
1MarkOtto@mdo
2JacobThornton@fat
3Larrythe Bird@twitter
Custom
#First NameLast NameUsername
1MarkOtto@mdo
2JacobThornton@fat
3Larrythe Bird@twitter
Dark
#First NameLast NameUsername
1MarkOtto@mdo
2JacobThornton@fat
3Larrythe Bird@twitter
Themed
#First NameLast NameUsername
1MarkOtto@mdo
2JacobThornton@fat
3Larrythe Bird@twitter

Table rows

Add .table-stripedto add zebra-striping to any table, and add .table-darkfor inverse pattern
Pattern
#First NameLast NameUsername
1MarkOtto@mdo
2JacobThornton@fat
3Larrythe Bird@twitter
Pattern inverse
#First NameLast NameUsername
1MarkOtto@mdo
2JacobThornton@fat
3Larrythe Bird@twitter

Table Bordered

Add .table-borderedfor borders on all sides of the table and cells.
#First NameLast NameUsername
1MarkOtto@mdo
2MarkOtto@TwBootstrap
3JacobThornton@fat
4Larry the Bird@twitter

Table Hover

Add .table-hoverto enable a hover state on table rows within a <tbody>
Hoverable
#First NameLast NameUsername
1JhonStone@jhon
2LisaNilson@lisa
3Larrythe Bird@twitter
Inverse
#First NameLast NameUsername
1JhonStone@jhon
2LisaNilson@lisa
3Larrythe Bird@twitter

Contextual classes

Use contextual classes to color table rows or individual cells. See the full list of color selection
#First NameLast NameUsername
1LisaNilson@lisa
2LisaNilson@lisa
3Nicklooper@king
4Joanthestar@joan
5Seancoder@coder
6Seancoder@coder

Table Small

Add .table-smto make tables more compact by cutting cell padding in half. See the full list of color selectionto add backgrounds as well
Compact
#First NameLast NameUsername
1MarkOtto@mdo
2JacobThornton@fat
3Larry the Bird@twitter
With background
#First NameLast NameUsername
1MarkOtto@mdo
2JacobThornton@fat
3Larry the Bird@twitter

Table Responsive

Make table responsive with .table-responsive. Maximum breakpoint can be applied by adding .table-responsive-sm, .table-responsive-ms, .table-responsive-lg, .table-responsive-xl
#Table headingTable headingTable headingTable headingTable headingTable heading
1Table cellTable cellTable cellTable cellTable cellTable cell
2Table cellTable cellTable cellTable cellTable cellTable cell
3Table cellTable cellTable cellTable cellTable cellTable cell