Border around a table?
Asked by Natalie Grant:

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!


Answers:
author: SarahA
body: 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

comments: author: Andy Rubio
body: Amazing that you have to pay to be able to do something as (otherwise) easy as put a border round a table.


author: Daniel Borcherding
body: 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.


author: Tom Baker
body: Links in solution no longer work... please put instructions here.


author: justin
body: 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; }  
Source : <http://www.corelangs.com/css/table/default.html>  
Justin  


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


author: Natalie Grant
body: 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.


Tags: cloud

confluence-cloud