How do I indent a table?

Background: I am an ondemand user and we don't have access to the wiki source editor.

I would like to indent a table to provide some offset for readability purposes as we use the pdf output for client-facing documentation. However, the only options I see are keeping them left-justified (Default) or using the {center} macro to center justify. But, I don't want all my tables to center. I just want to indent or offset them some.

In wikimarkup, I would have added &nbsp several times before the table headers to do this.

How can I do this in the current editor?

6 answers

1 accepted

Hi Scott,

I have also been able to reproduce your issue and it does indeed seem that this is a bug, because Tim's suggestion should work but isn't. Therefore I have reported this problem to our developers and you can keep updated with progress by following this ticket: https://jira.atlassian.com/browse/CONF-26178

I have also added a workaround in the bug report, so hopefully this will work for you in the short-term until our developers are able to address this issue.

All the best,
John

I had created a support ticket, JST-40521, 6 weeks ago and got a response a week ago stating that this was working as designed and considered an improvement. At the time, I mentioned per the responses here, that I did not believe it an improvement but a bug..but, still no agreement from support. Consequently, I am happy to hear that it is being acknowledged as a bug.

My concern is that the workarounds mentioned by Atlassian are often user macros. But, as OnDemand users, we cannot use any of them and thus, we have no workarounds. I requested from supported if they could add the user macro to our OnDemand instance if, in fact, they are indicating that they are viable -- not giving us the ability to add our own user macro...but, asking if they could add it.

The request in JST-40109 was denied.

I honestly do not understand if so many workarounds deal with user macros, why Atlassian cannot help their OnDemand customers by making these suggestions available vs adamantly stating, no we cannot help. In these cases, these issues should be raised higher in priority because no workaround is available for all. You're only providing those options to standalone customers. If Atlassian would help their OnDemand customers be more successful with their products, maybe those issues wouldn't have to be such a higher priority, allowing them to focus on other items that help everyone. It is just very frustrating as a on OnDemand user to constantly be denied help with these types of requests.

There are indent and "outdent" buttons in the editor toolbar:

You can position your cursor in front of the table by clicking in the right spot, but it's sometimes easier to put the cursor in the first header cell and use the left arrow key to move it in front of the table. Then you can click the indent button to move the whole table.

I wasn't able to succeed with that approach. I use firefox, chrome, safari.

I had to select all rows and use the indent. It looks fine in editing, appearing to be indented. But, when I saved it didn't display as indented. Nor, when I exported. In both cases, the table consistently appears left justified.

See attachments - the firs screenshot is when viewing; the second is when editing.

I've input several support tickets on similar issues I am having with formatting and exporting, but getting no assistance.

I think I may have found a way to perform this:

  1. create your table
  2. create a line break one line above the table
  3. starting on the line-break hold the shift key and forward the cursor so it is on the first line of the table
  4. click on the Indent button in the menu bar.

I was able to do this on Confluence 5.8 with Chrome

HTH Adam

Thanks! your tip worked for me

This works when in edit mode, but when I save the page, it shifts to the left margin.  When I re-edit the page, it looks correct...

Unbelievable! All the years later and from v4.x - 6.x and this remains an issue. Shame on Atlassian.

I concur, _shame_ on Atlassian for a swag of _common_ formatting and wiki functions that aren't ready to hand.  We have the visual editor installed but it uses HTML and it looks like Confluence and JIRA especially ignore the less common setting most times.

I was not successful with this method when I attempted it.  I took several runs at it before I found a solution.  I put two markers on lines before and after the table.  And selected them to Indent.

normal text
A
[Table]
Z
normal line of typing
  1. Make the table
  2. Put something on the line above the table, A above
  3. Put something below the table, Z in the example
  4. Click Indent on the edit bar
  5. Save / Update the page
  6. Go back and remove the lines with markers

That worked.  I imagine it won't be necessary to have extra lines to select, but you'll have to unintend them after.  I just deleted the 'extra' lines seemed easy enough.

In Confluence v4.2.x (ondemand) I too am unable to cause a table to indent in the saved page. However it shows indented while in the editor - wysi-N-wyg :`(

Using FireFox, v13.0.1. However I was unable to correct the page in IE9.

FYI: Sure miss pure wiki markup. WYSIWYG a la MSWord results in great pain and lost productivity fighting the tools <stepping off the soap box>.

See also: https://answers.atlassian.com/questions/46712/table-indent-works-in-editor-but-not-in-displayed-page

Here we are 5 years later and I still miss the pure wiki markup.

I'm seeing the same problem in Confluence 5.1. I see the style="margin-left: 30.0px" in the Source Code that I added to whatever tag I indent but in the case of tables, the renderer seems to ignore this inline style. Even more interesting is if I wrap this table with a div macro and then indent the div macro, neither one get receives the effect of the style added to the parent element.

@Adam Turner: Your solution works! thanks a lot.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

366 views 20 10
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you