Guide · 3 of 8
Columns and boxes
Let the theme lay out the page, or place a box yourself. Both stay in the text.
Columns and a placed box
Put two [col: elements next to each other in the body to make columns. Give a separate box x, y and w to place it as percentages of the page.
[title: Night at the library]
[subtitle: Friday · 7–10 pm]
[main:
[col:
**Reading room**
A quiet place to settle in with a book.
]
[col:
**Swap table**
Leave one book and pick another.
]
]
[box .fill x=72% y=57% w=18% h=32% style="text-align: center; align-content: center":
Free entry
]Multi-column flow
When one flow should run down a column and continue at the top of the next — as on a worksheet or handout — set CSS columns on the container instead of splitting by hand. Use column-span: all for a heading across all columns, and break-inside: avoid on boxes that should stay whole. See the full Worksheet example.
===
css: |
box.sheet {
columns: 2;
column-gap: 36px;
column-rule: 1px solid #c3c9d0;
row-gap: 16px;
}
.span { column-span: all; }
box.item { break-inside: avoid; }
===
[box .sheet:
[box .span:
# Tidepool field sheet
South Cove · low tide at 14:20
]
[box .item .outline:
**1. High shore**
Count barnacles in a 20 cm square near the dry line.
]
[box .item .outline:
**2. Mid shore**
Note limpets and dog whelks under damp ledges.
]
[box .item .outline:
**3. Lower pools**
Record water temperature $T$ and shade cover before moving on.
]
[box .item .tint:
**Reminder**
Leave turned stones face down so organisms underneath stay shaded.
]
]