Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How do I set the width of columns in my tables?

We recently switched to Confluence 4.0 and I lost my wiki markup editor :(

I am trying to change the width proportions of the columns in my table. Apparently I should be typing some {table-plus } type of macros, but I can't find a clear piece of documentation for it.

11 answers

1 accepted

4 votes
Answer accepted

Starting again :) If you have admin rights you could enable the {html} macro in Confluence Admin -> Plugins -> Confluence HTML Macros and then enter something along the lines of:

<table border="1" width="100%">
<td width="33%">One</td>
<td width="33%">Two</td>
<td width="33%">Three</td>

in the editor.

Alternatively, the "Table Plugin" plugin that provides the {table-plus} macro is now 4.x compatible so you could install that via the Universal Plugin manager under Confluence Admin or download from If you use the {table-plus} macro you should be able to use:


to set column widths. More examples of the formatting for {table-plus} are available at

Hope that helps,


Thanks .. I've asked our IT to look into enabling those..

How do I do this in Confluence 4+? I tried adding "width=100px" to the Column Attributes field but it didn't work?

I just found the method that Burke Mamlin put out here - - he wrote a snippet of html/javascript that you insert into Confluence Administration > Custom HTML > At the end of HEAD, then you can set column widths by prefixing column names with "200|" for 200 pixels, or "20%|" for 20%, et al. So far it's been dreamy. Thank you @Burke Mamlin (not sure if I got the right one, there's 4). 

Edit: apparently the original version is hard to find now. Here's the latest version we're using. It's been less useful as time goes by though - it works best for very specific situations, and it's definitely not for everyone. We've had users remove the values from tables when editing pages because they didn't know why they were there and were just trying to clean up/help. They also didn't notice when the tables re-sized themselves afterwards as well :/

Put this in your custom html HEAD:

<script type="text/javascript">
AJS.$(document).ready(function() {
  AJS.$('#content .wiki-content table').find('tr:first > th,tr:first > td').each(function() {
    var match = /^\s*((\d+)(px|%)?)\s*\|(.*)/.exec(this.textContent)
    if (match != null) {
      this.width = match[1]
      this.textContent = match[4]

You're welcome! Hope it works well for you. If it does, pay it forward by giving someone a hug today. :-)

this works like a charm!

Where do we find a copy of this snippet, CONF-3393 does not seem to have it. Could you please add it to this comment.

Done, I edited my original answer.

Instead of

this.textContent = match[4]

it ist better to use

this.innerHTML = this.innerHTML.replace(match[1]+"|", "")

So all formatting will be preserved.

You do realize that requiring administrator privileges to change the width of a column is pretty f**g broken, don't you?

Ditto having to use a macro, different than the existing.

I have existing tables, prepared with Confluence's default not-quite-WYSIWYG table editing facilities. Many of them. Their column widths are broken.  I would like to fix them, not start over.

Like Gerrard Burras likes this

if you prefix columns names then content cannot be retrieved using page properties report

Really? 2020 and we need to hack something together, or pay for an extra plugin because we can't resize the columns of a table? This is ridiculous.

It's funny that this question is on the top answers, but this information is massively outdated. You can now drag columns to set width in the editor.

Hi Steve, is it available on version 5.9.4? I can't drag columns as described by you.

Note that dragging may not seem to be working because when you widen a column to prevent word wrap, the word wrap comes back when you save the page. This is because the sidebar is not present while editing, so you have to add more space in edit mode than you think you need.

One simple but kind of hacky way is to insert an invisible "div" tag into a cell for which you want to specify the width. Use the free Adaptavist div macro and in the style parameter, specify width: 100px; (or whatever width you want to set). You'll have to do this for each column you want to size, but it's pretty easy and you can still use the visual table editor.

Deleted user Apr 25, 2015


1 vote

We have an open feature request for this, by the way

.issue-table > tbody > tr > td {

.issue-table > thead > tr > th {

The simplest solution without playing around with the markup...

On the top row of any column you want to have a specific width, insert a DIV macro/plugin in that cell.  On the DIV add a style for the width in the div settings page, for example width: 400px.  The div expansion, will force the table column to that size. 

As a very ugly workaround, try copying and pasting a few whitespace characters / line breaks.

...or use a spacer gif.

Hi Timothee,

I don't think you can set column widths for tables without the {table-plus} macro and it doesn't look like this feature is on the native roadmap according to

One way around it is to use {section} and {column} macros, e.g.

Text for this column goes here. This is  the smaller column with a width of only 30%.
Text for this column goes here. This is  the larger column with a width of 70%.
Not sure if that would work for you?

Ouch .. ok .. I see how that example works. It's pretty much impossible to edit or maintain complex tables that way though. Not that table support was particularly advanced in earlier versions, but it seems it took a bit of a dive :(

Any way to seamlessly embed excel spreadsheets maybe? If not I may just take a screenshot and attach. But it's going to make PDF exports less useful.

Hi Timothee,

The Table Plus Macro doesn't support Confluence 4.0, so for now you'll need to insert the markup for it using the dialog accessble from 'Inert' > 'Wiki markup'.


I haven't found what the markup should look like though?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

Confluence Mythbusters: Does Atlassian even use Confluence?

Hi, Confluence collaborators! As part of #Confluence-Collaboratory month, we’ve created a very special Mythsbusters segment, where we're dive into an interesting myth and uncover the truth behind i...

1,384 views 7 29
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you