Tables
Tables can be used to organize and display data.
Table Header | Table Header | Table Header |
---|---|---|
Table Row | Table Row | Table Row |
Table Row | Table Row | Table Row |
Table Row | Table Row | Table Row |
Table Footer | Table Footer | Table Footer |
<table>
<caption>Table Caption</caption>
<thead>
<tr>
<th>Table Header</th>
<th>Table Header</th>
<th>Table Header</th>
</tr>
</thead>
<tbody>
<tr>
<td>Table Row</td>
<td>Table Row</td>
<td>Table Row</td>
</tr>
<tr>
<td>Table Row</td>
<td>Table Row</td>
<td>Table Row</td>
</tr>
<tr>
<td>Table Row</td>
<td>Table Row</td>
<td>Table Row</td>
</tr>
</tbody>
<tfoot>
<tr>
<td>Table Footer</td>
<td>Table Footer</td>
<td>Table Footer</td>
</tr>
</tfoot>
</table>
Styles
Easily change the look of your tables to better fit your data.
Narrow
Narrow the cell height using the .narrow
Table Header | Table Header | Table Header |
---|---|---|
Table Row | Table Row | Table Row |
Table Row | Table Row | Table Row |
Table Row | Table Row | Table Row |
Table Footer | Table Footer | Table Footer |
<table class="narrow">
<caption>Table Caption</caption>
<thead>
<tr>
<th>Table Header</th>
<th>Table Header</th>
<th>Table Header</th>
</tr>
</thead>
<tbody>
<tr>
<td>Table Row</td>
<td>Table Row</td>
<td>Table Row</td>
</tr>
<tr>
<td>Table Row</td>
<td>Table Row</td>
<td>Table Row</td>
</tr>
<tr>
<td>Table Row</td>
<td>Table Row</td>
<td>Table Row</td>
</tr>
</tbody>
<tfoot>
<tr>
<td>Table Footer</td>
<td>Table Footer</td>
<td>Table Footer</td>
</tr>
</tfoot>
</table>
Striped
Stripe every other row using the .striped
class.
Table Header | Table Header | Table Header |
---|---|---|
Table Row | Table Row | Table Row |
Table Row | Table Row | Table Row |
Table Row | Table Row | Table Row |
Table Footer | Table Footer | Table Footer |
<table class="striped">
<caption>Table Caption</caption>
<thead>
<tr>
<th>Table Header</th>
<th>Table Header</th>
<th>Table Header</th>
</tr>
</thead>
<tbody>
<tr>
<td>Table Row</td>
<td>Table Row</td>
<td>Table Row</td>
</tr>
<tr>
<td>Table Row</td>
<td>Table Row</td>
<td>Table Row</td>
</tr>
<tr>
<td>Table Row</td>
<td>Table Row</td>
<td>Table Row</td>
</tr>
</tbody>
<tfoot>
<tr>
<td>Table Footer</td>
<td>Table Footer</td>
<td>Table Footer</td>
</tr>
</tfoot>
</table>
Bordered
Add a border around each cell using the .bordered
class.
Table Header | Table Header | Table Header |
---|---|---|
Table Row | Table Row | Table Row |
Table Row | Table Row | Table Row |
Table Row | Table Row | Table Row |
Table Footer | Table Footer | Table Footer |
<table class="bordered">
<caption>Table Caption</caption>
<thead>
<tr>
<th>Table Header</th>
<th>Table Header</th>
<th>Table Header</th>
</tr>
</thead>
<tbody>
<tr>
<td>Table Row</td>
<td>Table Row</td>
<td>Table Row</td>
</tr>
<tr>
<td>Table Row</td>
<td>Table Row</td>
<td>Table Row</td>
</tr>
<tr>
<td>Table Row</td>
<td>Table Row</td>
<td>Table Row</td>
</tr>
</tbody>
<tfoot>
<tr>
<td>Table Footer</td>
<td>Table Footer</td>
<td>Table Footer</td>
</tr>
</tfoot>
</table>
Hoverable
Enable row highlighting on the tbody
on mouseover using the .hoverable
class.
Table Header | Table Header | Table Header |
---|---|---|
Table Row | Table Row | Table Row |
Table Row | Table Row | Table Row |
Table Row | Table Row | Table Row |
Table Footer | Table Footer | Table Footer |
<table class="hoverable">
<caption>Table Caption</caption>
<thead>
<tr>
<th>Table Header</th>
<th>Table Header</th>
<th>Table Header</th>
</tr>
</thead>
<tbody>
<tr>
<td>Table Row</td>
<td>Table Row</td>
<td>Table Row</td>
</tr>
<tr>
<td>Table Row</td>
<td>Table Row</td>
<td>Table Row</td>
</tr>
<tr>
<td>Table Row</td>
<td>Table Row</td>
<td>Table Row</td>
</tr>
</tbody>
<tfoot>
<tr>
<td>Table Footer</td>
<td>Table Footer</td>
<td>Table Footer</td>
</tr>
</tfoot>
</table>
Full Width
Let your table expand as much as possible by wrapping your table in a div
with the .full-width-table
class.
Table Header | Table Header | Table Header |
---|---|---|
Table Row | Table Row | Table Row |
Table Row | Table Row | Table Row |
Table Row | Table Row | Table Row |
Table Footer | Table Footer | Table Footer |
<div class="full-width-table">
<table>
<caption>Table Caption</caption>
<thead>
<tr>
<th>Table Header</th>
<th>Table Header</th>
<th>Table Header</th>
</tr>
</thead>
<tbody>
<tr>
<td>Table Row</td>
<td>Table Row</td>
<td>Table Row</td>
</tr>
<tr>
<td>Table Row</td>
<td>Table Row</td>
<td>Table Row</td>
</tr>
<tr>
<td>Table Row</td>
<td>Table Row</td>
<td>Table Row</td>
</tr>
</tbody>
<tfoot>
<tr>
<td>Table Footer</td>
<td>Table Footer</td>
<td>Table Footer</td>
</tr>
</tfoot>
</table>
</div>
Combinations
Mix and match the .narrow
, .striped
, .bordered
, .hoverable
, and .full-width-table
classes to create the perfect table.
Table Header | Table Header | Table Header |
---|---|---|
Table Row | Table Row | Table Row |
Table Row | Table Row | Table Row |
Table Row | Table Row | Table Row |
Table Footer | Table Footer | Table Footer |
<div class="full-width-table">
<table class="hoverable narrow striped bordered">
<caption>Table Caption</caption>
<thead>
<tr>
<th>Table Header</th>
<th>Table Header</th>
<th>Table Header</th>
</tr>
</thead>
<tbody>
<tr>
<td>Table Row</td>
<td>Table Row</td>
<td>Table Row</td>
</tr>
<tr>
<td>Table Row</td>
<td>Table Row</td>
<td>Table Row</td>
</tr>
<tr>
<td>Table Row</td>
<td>Table Row</td>
<td>Table Row</td>
</tr>
</tbody>
<tfoot>
<tr>
<td>Table Footer</td>
<td>Table Footer</td>
<td>Table Footer</td>
</tr>
</tfoot>
</table>
</div>
Vertical Alignment
Easily vertically align the content within a table cell.
Table Header | Table Header | Table Header | Table Header |
---|---|---|---|
Top | Middle | Bottom |
<table>
<caption>Table Caption</caption>
<thead>
<tr>
<th>Table Header</th>
<th>Table Header</th>
<th>Table Header</th>
<th>Table Header</th>
</tr>
</thead>
<tbody>
<tr>
<td class="bg-light" style="height: 100px;"></td>
<td class="vertical-align-top">Top</td>
<td class="vertical-align-middle">Middle</td>
<td class="vertical-align-bottom">Bottom</td>
</tr>
</tbody>
</table>
Colors
Change the color of your tables using boba's vibrant color palette.
Table Header | Table Header | Table Header |
---|---|---|
Table Row | Table Row | Table Row |
Table Row | Table Row | Table Row |
Table Row | Table Row | Table Row |
Table Footer | Table Footer | Table Footer |
<table class="striped hoverable orange">
<caption>Table Caption</caption>
<thead>
<tr>
<th>Table Header</th>
<th>Table Header</th>
<th>Table Header</th>
</tr>
</thead>
<tbody>
<tr>
<td>Table Row</td>
<td>Table Row</td>
<td>Table Row</td>
</tr>
<tr>
<td>Table Row</td>
<td>Table Row</td>
<td>Table Row</td>
</tr>
<tr>
<td>Table Row</td>
<td>Table Row</td>
<td>Table Row</td>
</tr>
</tbody>
<tfoot>
<tr>
<td>Table Footer</td>
<td>Table Footer</td>
<td>Table Footer</td>
</tr>
</tfoot>
</table>
Table Header | Table Header | Table Header |
---|---|---|
Table Row | Table Row | Table Row |
Table Row | Table Row | Table Row |
Table Row | Table Row | Table Row |
Table Footer | Table Footer | Table Footer |
<div class="full-width-table">
<table class="narrow striped green">
<caption>Table Caption</caption>
<thead>
<tr>
<th>Table Header</th>
<th>Table Header</th>
<th>Table Header</th>
</tr>
</thead>
<tbody>
<tr>
<td>Table Row</td>
<td>Table Row</td>
<td>Table Row</td>
</tr>
<tr>
<td>Table Row</td>
<td>Table Row</td>
<td>Table Row</td>
</tr>
<tr>
<td>Table Row</td>
<td>Table Row</td>
<td>Table Row</td>
</tr>
</tbody>
<tfoot>
<tr>
<td>Table Footer</td>
<td>Table Footer</td>
<td>Table Footer</td>
</tr>
</tfoot>
</table>
</div">