Table styles on Markdown
Headers
Markdown
| Header Column One | Header Column Two | Header Column Three | Header Column Four |
Alignments
Left align: :--
or three dashes ---
Right align: --:
Centre align: :-:
Place those alignment within pipes in the respective columns.
Markdown
| Default Header | Left Align | Right Align | Center Align |
| --- | :-- | --: | :-: |
Table contents
Every columns is separated with pipe |
and every row is placed in different lines:
Markdown
| Column 1 Header | Column 2 Header | Column 3 Header |
| --------------- | --------------- | --------------- |
| Row 1 Column 1 | Row 1 Column 2 | Row 1 Column 3 |
| Row 2 Column 1 | Row 2 Column 2 | Row 2 Column 3 |
| Row 3 Column 1 | Row 3 Column 2 | Row 3 Column 3 |
Output
Column 1 Header | Column 2 Header | Column 3 Header |
---|---|---|
Row 1 Column 1 | Row 1 Column 2 | Row 1 Column 3 |
Row 2 Column 1 | Row 2 Column 2 | Row 2 Column 3 |
Row 3 Column 1 | Row 3 Column 2 | Row 3 Column 3 |