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:

SyntaxAlignmentExample
:--- or ---Left (default)Text aligns left
:---:CenterText centers
---:RightText aligns right

Example

| Left | Center | Right |
|:-----|:------:|------:|
| A    |   B    |     C |