Markdown Table Alignment
Control column alignment in Markdown tables
:--- :---: ---:
| Product | Quantity | Price | | :--- | :---: | ---: | | Widget A | 100 | $9.99 | | Widget B | 50 | $19.99 | | Widget C | 200 | $4.99 |
| Product | Quantity | Price |
|---|---|---|
| Widget A | 100 | $9.99 |
| Widget B | 50 | $19.99 |
| Widget C | 200 | $4.99 |
Table Alignment Syntax
Markdown tables use colons in the separator row to control column alignment:
| Syntax | Alignment | Example |
|---|---|---|
:--- or --- | Left (default) | Text aligns left |
:---: | Center | Text centers |
---: | Right | Text aligns right |
Example
| Left | Center | Right |
|:-----|:------:|------:|
| A | B | C |