Is it possible to align text in table cells?

Alex Davidson March 26, 2015

User wants to align text in table cells in same why as Excel (top, bottom, center). Any ideas?

5 answers

12 votes
Vladimir Bjelakovic November 10, 2015

funny enough 3+ years old....

3 votes
takobruinsma December 29, 2016

It ain't pretty, but  you could add a a 'style' macro with the following content (at least on Atlassian Cloud):

td {vertical-align:middle !important;}

That will set it for all table cells though.

K Langford May 8, 2020

Ain't pretty?  It's beautiful.

For anyone on server version that wants to create their own user macro using TB's code snippet, here it is.

## Macro title: Center All Table Cells (Vertical)
## Macro has a body: N
## Body processing: no body
## Output: Changes cell text to vertical alignment in table cells,
##
## Developed by: YOUR NAME
## Date created: 05/8/2020
## Installed by: YOUR NAME

## @noparams
<style>
.wiki-content td {vertical-align:middle !important;}
</style>

Like # people like this
Enric Martinez November 13, 2020

Oh, I just found another option:

Just use plain old HTML. A bit more work, but it does the job.

What, on the other hand, makes me wonder why in Hell's bloody name they can's just add something to the CSS or write two g**damn lines f code to do that. It's not like they have to write an x86_64 assembler from scratch.

 

 

 

3 votes
Mallmann
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 26, 2015

Hello Alex,

Current there's no support for vertical alignment of table cell contents in Confluence. There's an existing New Feature request, though: https://jira.atlassian.com/browse/CONF-24453

I hope it helps.

Eduardo

Enric Martinez November 13, 2020

Hi, I'm from the future, 2020.

It is still not possible, at least not without paying extra for a plugin.

Any Wiki can do that without much fuzz thoug.

Like # people like this
Patricia Nieto December 11, 2020

I can't find how to center vertically the text within a section macro either :(

Like jkannut likes this
2 votes
Kirill Timofeev May 13, 2020

Hi everyone!

I wrote a simple app for this - https://marketplace.atlassian.com/apps/1222494/vertical-align-for-confluence.

Welcome. :)

Anastasia Rumyantseva August 12, 2020

Is it possible to have the cloud version?

Pablo De Luca August 18, 2020

Hi there, 

Thanks a lot for writing this app. Would it work for Data Center versions too?

Jessica Bean August 21, 2020

Would love it if you could write a Cloud version! This is needed desperately!  :)

Ákos Botos June 25, 2021

Thank you mate!

0 votes
Alex Davidson March 26, 2015

Thanks Eduardo!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events