Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Border around a table?

Natalie Grant June 11, 2013

Hi -- if you click on an image while editing a Confluence page, it has the option of adding a border (just a black frame). Is there any way to do this for a table somehow? The table row/column borders are really faint and hard to see, and sometimes even disappear (as mentioned here: https://answers.atlassian.com/questions/171645/table-borders-disappearing). Can I add borders to my table (in the Atlassian hosted version)? Thanks!

6 answers

1 accepted

0 votes
Answer accepted
SarahA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 13, 2013

Hallo Natalie

Daniel's suggestion is a good one for installed versions of Confluence, but the CSS styling is not available in your hosted (Confluence OnDemand) site.

Your idea of using Excel is also very good!

Another great option is to use the Table Plus macro. It is available in Confluence OnDemand - I've just tried it on my own site.

To use the Table Plus macro, add the macro via "Insert" > "Other Macros" in the Confluence editor. You'll see the macro placeholder on your page.

Then add tables inside the macro placeholder, using the normal table option in the editor.

Then click the Table Plus macro placeholder, to edit the macro options. Right at the very bottom is a place where you can set the width of the borders. There are some other pretty neat options there too.

If you like, you can see my page where I played around with the Table Plus macro here:

https://wikitechcomm.atlassian.net/wiki/display/CHAT/Playing+with+tables

To see the macro placeholders, choose "Tools" > "View Source" on that page.

Here's the full documentation for the Table Plus macro:

https://bobswift.atlassian.net/wiki/display/TBL/Table-plus+macro

I hope this helps.

Cheers

Sarah

Andy Rubio May 8, 2014

Amazing that you have to pay to be able to do something as (otherwise) easy as put a border round a table.

1 vote
Daniel Borcherding
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 12, 2013

You could use a custom stylesheet to place a border around your table.

http://www.w3schools.com/css/css_table.asp

table, th, td
{
border: 3px solid black;
}

I would try adding the above to your custom stylsheet area in Confluence admin and see if you like the results. Note: this will alter the style for all tables in your instance. You could use a the source editor to add a custom class to the table and alter your css rule to apply styling to just that class.

0 votes
Tom Baker September 17, 2015

Links in solution no longer work... please put instructions here.

0 votes
justin November 14, 2014

The CSS Collapse property takes two values, separate and collapse.

  separate :   The separate value forced all cells have their own independent borders and allow spaces between those cells.

  collapse :   This value collapse all spaces between table borders and cells, so you can see as a single line border.

table { border-collapse:collapse; }
 
 
Justin
 

 

0 votes
douglaswelbar September 14, 2014

HTML Table formatting with CSS will help you. http://www.corelangs.com/css/table/default.html Douglas

0 votes
Natalie Grant June 11, 2013

Just thought: I could make my table in Excel and then use the MS Excel preview macro to display it on the page. It's not ideal because I wouldn't be able to edit the table on the page -- I'd have to go back into the original document and re-upload it to Confluence each time changes are made. But at least the table would look more professional.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events