Markdown Toolbox Logo Markdown Toolbox
Home
Blog

Can I align text within table cells in markdown?

Monday, December 25, 2023

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 AlignedCenter AlignedRight Aligned
LeftCenterRight