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 to fix the column width in confluence tables

Luke Chapman Feb 09, 2015

Hi There,

 

I have 7 tables on a page that need to be separated because they are each important checklists with different purposes.  However, it reads poorly visually BECAUSE the tables each have 3 columns but the columns vary in width among the tables.  https://womply.atlassian.net/wiki/display/BD/MCPS+-+TSR+Spec+-+CHECKLIST

 

Is there a way to select the width of the columns in the tables?

 

Thanks so much.

 

Luke Chapman - lchapman@womply.com

9 answers

11 votes
Rob Woodgate Feb 06, 2017

Hi Luke,

I don't know why the other answers are telling you to use a macro or code something, but this is entirely possible in Confluence.

In the table toolbar there is a dropdown on the left hand side that says Responsive".  If you click it, you can change it to Fixed width.  This means that the columns in your table will display with the width you've chosen, no matter what the screen resolution or platform.  If you leave it as Responsive, the table will be rendered with whatever column widths the browser thinks are right.

You can change the width of columns by selecting a column line and moving it left or right.

Christine Diamond Sep 08, 2017

Hi Rob, I don't see "Responsive." I am on v 5.7.1.

What version are you using?

Rob Woodgate Sep 10, 2017

Hi Christine,

I'm using the Cloud version, but this functionality has been added to the Server version (see here for the 6.4 docs on tables).

When this was added to Server I don't know, but after 5.7, certainly, as that's quite an old version.....

Joy Mather Nov 21, 2017

The feature is in v 6.3. it is still a bit ugly.

2 votes
mick davidson Oct 09, 2015

I've found an easy way of doing this, for Server 5.7.3. 

All you have to do is:

Add width="n" into the <th> tag at the beginning of the code.

For example:

<th width="100">Column Name</th>

In the code this looks like:

<table>
<tbody>
<tr>
<th width="200">Field</th>
<th>Description</th>
</tr>

Do this for all columns or just the one you want to keep at a fixed width.

So for two columns you could have:

<table>
<tbody>
<tr>
<th width="200">Field</th>
 <th width="500">Description</th>
 <th>Description</th>
</tr>

I did this yesterday and it's still working today, so it must be right! smile

Cheers.

1 vote
Benj Apr 13, 2015

You might want to vote for this issue: https://jira.atlassian.com/browse/CONF-3393

It is outstanding for almost 10 years now. Hopefully Atlassian will get around to it sooner than later.

1 vote
Jyo J Nov 12, 2015

where do we need to add this code?

 

0 votes
Peter Bengov Community Leader Feb 09, 2015

Hi Luke, this is not Atlassian Support, so we can't access your system. You can contact them in support.atlassian.com. If you would like help from the community here - you can add a screenshot :)

0 votes
Tom Crespi Feb 09, 2015

Hi Luke,

This currently isn't possible natively in Confluence, but is possible using the Table Plus Macro which is part of the Advanced Tables for Confluence plugin.  References to this:

1.) https://bobswift.atlassian.net/wiki/display/TBL/Controlling+the+Width+of+Table+Columns

2.) https://answers.atlassian.com/questions/305897

I haven't used this particular macro yet so if you are able to use it and it works, please let us know.

Good luck!

0 votes
Dawn DiAnda Jun 14, 2016

Hey Luke,

I'm not sure if you have found a solution to your issue. One way to constraint the content in the table in to use the Column Macro in the cell, then embed your content in macro. You will be able constrain width of each column based on the value you input into the Column macro.

0 votes
David Skreiner Feb 06, 2017

Please add the word "confluence" to the title.

 

This description applies only to Confluence, but it's the top Google result when trying to find info on how to fix column widths in JIRA. 

0 votes
Tom Crespi Feb 06, 2017

Hey David, I added 'Confluence' to the title (on behalf of Luke). Hopefully that'll help in future Google searches.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Confluence

Confluence CVEs and common questions

Two vulnerabilities have been published for Confluence Server and Data Center recently: March 20, 2019 CVE-2019-3395 / CVE-2019-3396 April 17, 2019 CVE-2019-3398 The goal of this article is...

860 views 0 19
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