# Creating a table

**URL:** <https://boards.straightdope.com/t/creating-a-table/586457>\
**Category:** About This Message Board\
**Created:** [June 22, 2011, 5:59pm UTC](https://boards.straightdope.com/t/creating-a-table/586457 "2011-06-22T17:59:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Grey](https://avatars.discourse-cdn.com/v4/letter/g/b782af/32.png) [@Grey](https://boards.straightdope.com/u/Grey)\
**Post date:** [June 22, 2011, 5:59pm UTC](https://boards.straightdope.com/t/creating-a-table/586457/1 "2011-06-22T17:59:24Z")

</div>

I know I asked this years ago but I can’t seem to find it. How do I build a table in to my posts?

For example

Province-----Revenue—% of Debt  
A A’ A’’  
B B’ B’’  
C C’ C’’

Never aligns correctly. How do I clean that up?

---

<div class="post-metadata">

**Author:** ![Bosstone](https://avatars.discourse-cdn.com/v4/letter/b/22d042/32.png) [@Bosstone](https://boards.straightdope.com/u/Bosstone)\
**Post date:** [June 22, 2011, 6:13pm UTC](https://boards.straightdope.com/t/creating-a-table/586457/2 "2011-06-22T18:13:15Z")

</div>

Use the code tag. You still need to manually space things out (unless there’s a tabbing tag I’m unaware of), but it’ll retain multiple spaces and monospace the font to allow things to line up more easily.

```auto

Province Revenue % of Debt
A A' A''
B B' B''
C C' C''

```

---

<div class="post-metadata">

**Author:** ![Grey](https://avatars.discourse-cdn.com/v4/letter/g/b782af/32.png) [@Grey](https://boards.straightdope.com/u/Grey)\
**Post date:** [June 22, 2011, 6:25pm UTC](https://boards.straightdope.com/t/creating-a-table/586457/3 "2011-06-22T18:25:23Z")

</div>

ah… that helps a lot.

---

<div class="post-metadata">

**Author:** ![Munch](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/munch/32/5281_2.png) [@Munch](https://boards.straightdope.com/u/Munch)\
**Post date:** [June 22, 2011, 6:29pm UTC](https://boards.straightdope.com/t/creating-a-table/586457/4 "2011-06-22T18:29:27Z")

</div>

If you paste directly from Excel into a code tag, it’ll retain all the columns.

```auto

1	4651	A"
10	3	B"
100	137316	C"

```
