Text Alignment
Control the horizontal alignment of content within any cell using the `align` attribute.
Syntax
STL{align="center"} ContentValues
- `left` (default): Aligns content to the left.
- `center`: Centers the content horizontally.
- `right`: Aligns content to the right.
Example
STL#table
cols: 3
[header]
Item | {align="center"} Qty | {align="right"} Price
[body]
Apple | {align="center"} 10 | {align="right"} $1.00
Banana | {align="center"} 5 | {align="right"} $0.50How Alignment Works
The alignment attribute is applied to individual cells, giving you precise control over content placement.
Per-Cell Control: Each cell can have its own alignment, independent of other cells in the same column.
Header & Body: Alignment works the same in both header and body sections.
