CSS to add border/fill to table of contents

I'm trying to make my table of contents stand out a little more. Am I able to add a border and/or fill to the standard macro using the CSS Class Name option? Something like the ToC on this page would be great: https://confluence.atlassian.com/conf51/table-of-contents-macro-336169370.html

I don't really know how to use CSS and I know the above is using a specific theme, but I like the default theme and wouldn't mind just being able to make this tweak if possible. Would anyone be able to help?

2 answers

1 accepted

1 vote
Accepted answer
Stephen Deutsch Community Champion Jul 12, 2017

Hi Hamish,

Actually, I think it might be easier then you think to get something similar to what Atlassian has done. The only thing they did was to wrap the ToC macro in a Panel macro. I was able to do something similar to theirs with the following settings:


Hi Stephem

That's perfect, thank you! Really neat trick to know. I really appreciate the quick help :)

EDIT: Replied in wrong place.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Oct 24, 2018 in Confluence

Atlassian Research opportunity with Confluence templates

Do you use templates with Confluence? Take part in a remote 1-hr workshop. You'll receive USD $100 for your time!   We're looking for people to participate in a   remote 1-hr workshop...

1,099 views 17 14
Join discussion

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