# Tables
Styling tables can be a major pain. Luckily, Cirrus has that covered by providing sleek, modern table designs straight out of the box. The base styling is minimal and can be customized if needed. To use Cirrus's styles, just add the table
class to the table itself.
Table Outline
T1 | T2 | T3 | Notes |
---|---|---|---|
T1 | T2 | T3 | Notes |
1 | Row:1 Cell:1 | Row:1 Cell:2 | Row:1 Cell:3 |
2 | Row:2 Cell:1 | Row:2 Cell:2 | Row:2 Cell:3 |
3 | Row:3 Cell:1 | Row:3 Cell:2 | Row:3 Cell:3 |
Table Outline
table
thead
tfoot
tbody
tr
th
td
<table class="table">
<thead>
<tr>
<th><abbr title="Title1">T1</abbr></th>
<th><abbr title="Title2">T2</abbr></th>
<th><abbr title="Title3">T3</abbr></th>
<th>Notes</th>
</tr>
</thead>
<tfoot>
<tr>
<th><abbr title="Title1">T1</abbr></th>
<th><abbr title="Title2">T2</abbr></th>
<th><abbr title="Title3">T3</abbr></th>
<th>Notes</th>
</tr>
</tfoot>
<tbody>
<tr><th>1</th><td>Row:1 Cell:1</td><td>Row:1 Cell:2</td><td>Row:1 Cell:3</td></tr>
<tr><th>2</th><td>Row:2 Cell:1</td><td>Row:2 Cell:2</td><td>Row:2 Cell:3</td></tr>
<tr><th>3</th><td>Row:3 Cell:1</td><td>Row:3 Cell:2</td><td>Row:3 Cell:3</td></tr>
</tbody>
</table>
To select an item in the table, just add the .selected
selector to the tr
(row) you want.
T1 | T2 | T3 | T4 | T5 | S | Notes |
---|---|---|---|---|---|---|
T1 | T2 | T3 | T4 | T5 | S | Notes |
1 | Row:1 Cell:1 | Row:1 Cell:2 | Row:1 Cell:3 | Row:1 Cell:4 | S | Row:1 Cell:5 |
2 | Row:2 Cell:1 | Row:2 Cell:2 | Row:2 Cell:3 | Row:2 Cell:4 | S | Row:2 Cell:5 |
3 | Row:3 Cell:1 | Row:3 Cell:2 | Row:3 Cell:3 | Row:3 Cell:4 | S | Row:3 Cell:5 |
4 | Row:4 Cell:1 | Row:4 Cell:2 | Row:4 Cell:3 | Row:4 Cell:4 | S | Row:4 Cell:5 |
5 | Row:5 Cell:1 | Row:5 Cell:2 | Row:5 Cell:3 | Row:5 Cell:4 | S | Row:5 Cell:5 |
6 | Row:6 Cell:1 | Row:6 Cell:2 | Row:6 Cell:3 | Row:6 Cell:4 | S | Row:6 Cell:5 |