I know this has been asked elsewhere, but none of those solutions seem to work for me.
trying to centre a table on a page.
Have used the align macro, to no avail (align=centre). This does work for nested macros like iframe, but not for a table in the exact same macro window.
have used the centre macro, div macro, nothing seems to centre the table on the page, it remains orientated to the left.
A separate but equally frustrating issue is getting text to align to centre within a table. I currently have to do this 1 cell at a time... highlighting the whole table and pressing centre only centre's the first and last rows content, the rest remain in their original alignment.
What I have in the EDIT window
What results (same for other macro's like 'centre'):
I also see that the ticket you linked to has been open without comment for some 6 years (and relates to vertical, not horizontal or table alignment) - i suggested confluence to the new company I started with having seen its usefulness at my previous role at a different company (what I believe was the server version). I dont particularly want to look at alternatives, given atlassian seem to have cornered this part of the market, but 6 years for what should be a relatively simple fix (or at the very least, without explanation of why its not, given the number of workarounds offered in the comments) seems ridiculous.
It sounds like you’ve tried quite a few things. I tested this on my own Confluence Cloud instance, and found that if I highlight the entire table and then click “Align Center” in the text editor bar, the whole table is moved to the center position:
To highlight and move:
The end result:
Have you tried highlighting the full table and then testing “Align Center”? Please note, you’ll need to ensure every cell is highlighted.
Regarding the centered text inside the cell - it looks like this functionality is currently unavailable:
Per Atlassian’s New Feature Policy, please comment on the ticket with how this affects your team. It will help provide some insight into the feature for our product team.
Hope that information helps,
this is the result from doing as you suggested:
as you can see, the text in the top and bottom rows is now centred, while the rest of the text remains left orientated, and the table itself remains stubbornly left orientated. When I select the cells individually, only those that are centre orientated have the 'align centre' icon highlighted, the others have none of the orientation icons highlighted (if that helps...)
I've also noticed in doing this that it seems impossible to copy paste tables? the only thing that gets copied is text, ie
is a result of copying the above table in the editor window.
Thanks for providing the details of the behavior you’re seeing. I wasn’t able to replicate this behavior on my Cloud instance which indicates there’s something environmental or on the page itself that is causing the issue.
Our support team will need to investigate this in more detail, so I went ahead and created a ticket on your behalf. You should see an email about it shortly.
In regards to your comment about the bug - I linked this community post and added your input in a private comment on the bug ticket so that our product team can see the impact this is having. This will help them prioritize this as a feature to take on.
Moving forward, let’s take this investigation to the ticket I created to find the cause of your issue with getting a table centered on the page.
👋 Hi there, a few of us at Atlassian would love to learn about how you use "space settings" functionality in Confluence. A facelift to the space settings is long overdue and we want to start with im...
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