Table
Tables are a nice way to organize a lot of data. We provide a few utility classes to help you style your table as easily as possible. In addition, to improve mobile experience, all tables on mobile-screen widths are centered automatically.
Name | Item | Price |
---|---|---|
Alvin | Eclair | $0.87 |
Alan | Jellybean | $3.76 |
Jonathan | Lollipop | $7.00 |
Shannon | KitKat | $9.99 |
<table class="table">
<thead>
<tr>
<th scope="col">Name</th>
<th scope="col">Item</th>
<th scope="col">Price</th>
</tr>
</thead>
<tbody>
<tr>
<td scope="row">Alvin</td>
<td>Eclair</td>
<td>$0.87</td>
</tr>
<tr>
<td scope="row">Alan</td>
<td>Jellybean</td>
<td>$3.76</td>
</tr>
<tr>
<td scope="row">Jonathan</td>
<td>Lollipop</td>
<td>$7.00</td>
</tr>
</tbody>
</table>
Striped Table
add class="striped"
to the table tag for a striped table
Name | Item | Price |
---|---|---|
Alvin | Eclair | $0.87 |
Alan | Jellybean | $3.76 |
Jonathan | Lollipop | $7.00 |
Shannon | KitKat | $9.99 |
Highlight Table
add class="highlight"
to the table tag for a highlight table
Name | Item | Price |
---|---|---|
Alvin | Eclair | $0.87 |
Alan | Jellybean | $3.76 |
Jonathan | Lollipop | $7.00 |
Shannon | KitKat | $9.99 |
Centered Table
add class="centered"
to the table tag to center align all the text in the table.
Name | Item | Price |
---|---|---|
Alvin | Eclair | $0.87 |
Alan | Jellybean | $3.76 |
Jonathan | Lollipop | $7.00 |
Shannon | KitKat | $9.99 |
Responsive Table
add class="responsive"
to the table tag to make the table horizontally scrollable on smaller screen widths.
Name | Item | Price |
---|---|---|
Alvin | Eclair | $0.87 |
Alan | Jellybean | $3.76 |
Jonathan | Lollipop | $7.00 |
Shannon | KitKat | $9.99 |
Issues
Bug or features request? Open an Issue