Markdown Toolbox Logo Markdown Toolbox
Home
Blog

Can I align text within table cells in markdown?

2023-12-25

To align text within table cells in Markdown, use colons : in the header row of the table. A colon on the left aligns text to the left, on the right for right alignment, and on both sides for center alignment.

| Left Aligned | Center Aligned | Right Aligned |
| :----------- | :------------: | ------------: |
| Left         |     Center     |         Right |
Left Aligned Center Aligned Right Aligned
Left Center Right