Tables
Simple tables, alignment and formatting inside cells
Simple table
The first row is the header. The line of dashes under it is required. The columns do not need to line up in the code.
| Time | What happens |
|---|---|
| 15:00 | Welcome and prayer |
| 15:20 | Game |
| 16:30 | Snack and goodbye |
| Time | What happens |
|---|---|
| 15:00 | Welcome and prayer |
| 15:20 | Game |
| 16:30 | Snack and goodbye |
[options="header"]
|===
| Time | What happens
| 15:00 | Welcome and prayer
| 15:20 | Game
| 16:30 | Snack and goodbye
|===
<table>
<thead>
<tr><th>Time</th><th>What happens</th></tr>
</thead>
<tbody>
<tr><td>15:00</td><td>Welcome and prayer</td></tr>
<tr><td>15:20</td><td>Game</td></tr>
<tr><td>16:30</td><td>Snack and goodbye</td></tr>
</tbody>
</table>
Alignment
Colons in the dash line align a column: on the left, on both sides (center) or on the right.
| Item | Quantity | Cost |
|---|---|---|
| Candles | 30 | 15.00 |
| Cards | 100 | 8.50 |
| Total | 23.50 |
| Item | Quantity | Cost |
|:---|:---:|---:|
| Candles | 30 | 15.00 |
| Cards | 100 | 8.50 |
| **Total** | | **23.50** |
[cols="<,^,>", options="header"]
|===
| Item | Quantity | Cost
| Candles | 30 | 15.00
| Cards | 100 | 8.50
| *Total* | | *23.50*
|===
<table>
<thead>
<tr><th style="text-align:left">Item</th><th style="text-align:center">Quantity</th><th style="text-align:right">Cost</th></tr>
</thead>
<tbody>
<tr><td>Candles</td><td style="text-align:center">30</td><td style="text-align:right">15.00</td></tr>
<tr><td>Cards</td><td style="text-align:center">100</td><td style="text-align:right">8.50</td></tr>
<tr><td><strong>Total</strong></td><td></td><td style="text-align:right"><strong>23.50</strong></td></tr>
</tbody>
</table>
Summary table of an activity
The table at the top of every activity, game and project page. It has no header row, so the header cells are left empty.
| Age group | 8-11 |
| People | 10 to 25 |
| Duration | 60 minutes |
| Liturgical season | Advent |
| | |
|---|---|
| **Age group** | 8-11 |
| **People** | 10 to 25 |
| **Duration** | 60 minutes |
| **Liturgical season** | Advent |
[cols="1h,2"]
|===
| Age group | 8-11
| People | 10 to 25
| Duration | 60 minutes
| Liturgical season | Advent
|===
<table>
<tbody>
<tr><th>Age group</th><td>8-11</td></tr>
<tr><th>People</th><td>10 to 25</td></tr>
<tr><th>Duration</th><td>60 minutes</td></tr>
<tr><th>Liturgical season</th><td>Advent</td></tr>
</tbody>
</table>
Tip
A table wider than the page scrolls sideways inside its own box, so it never breaks the page on a phone.