Confluence: hide table cell borders

Hi all,

Is it possible to completely hide Confluence table borders without tinkering with CSS styles?

Setting "border" to "0" gives in 1px gray borders around table cells (Confluence 3.5):

{table:border=0|cellpadding=0|cellspaceing=0|frame=void|rules=none}

|| header1 || header 2 ||

| cell11 | cell 12 |

| cell 21 | cell 22 |

{table}

2 answers

1 accepted

This widget could not be displayed.
Thomas Schlegel Community Champion Jun 11, 2012

Hi Pavel,

you have to do it like this:

{table:border=0|cellpadding=0|cellspaceing=0|frame=void|rules=none}
{tr}
{th}header1{th}
{th}header 2{th}
{tr}
{tr}
{td}cell11 
{td}
{td}cell 12 
{td}
{tr}
{tr}
{td}cell 21 
{td}
{td}cell 22 
{td}
{tr}
{table}



Thanks for your answer!

I'm bit confused by Confluence table syntax, because by default Confluence editor generates a table with cells separated by pipe "|" symbol. I somehow expected that iternally the same rendering code used for both syntax variants - pipe "|" and {tr}{td}.

Do you have any idea why tables were impletented this way? Is {tr}{td} more preferable / recent syntax than "|"?

Thomas Schlegel Community Champion Jun 11, 2012

Hi Pavel,

the regular Wiki-Syntax for tables is the one with pipes.

But if you use the {table} makro from adaptavist, you have to use also the {tr}, {th} and {td} macros inside.

You cannot use the pipe-Syntax within the {table}-Makro. Then you get a regular Confluence-Table with borders.

Best regards

Thomas

In confluence 4.3.6 it seems one can't edit the markup anymore. Is there anyway of getting rid of a table border once created?

This widget could not be displayed.

Table Plugin for Confluence will do what you want:

{table-plus:border=0|class=''}
|| header1 || header 2 ||
| cell11 | cell 12 | 
| cell 21 | cell 22 |
{table-plus}

Hey Bob,

exactly what I was just looking for :)

Thanks

Marco

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published Jul 30, 2018 in Confluence

How Manon Soubies-Camy uses Confluence + Trello to organize webinar notes and her knitting stash

@Manon Soubies-Camy is an engineer who has been an avid Atlassian user since 2014. She helps companies of all sizes transform the way they work with the Atlassian stack, including Jira and Confl...

863 views 8 13
Read article

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