It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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:

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?

3 answers

1 accepted

2 votes
Answer accepted

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.

This is a neat trick however note that the current panel macro creates a distinctively different panel. It has a light gray header bar and a white body (think a 1 x 2 table with a header.) To make this close to the panel shown above, use Background Color: #F7F7F7 Border Color: #E0E0E0 & Boarder Pixel Width: 2.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Confluence

How is your team having fun and bonding, remotely, utilizing Confluence?

Thanks everyone for answering last week’s question. The winner of the random drawing from those who commented is: @LarryBrock I’ll contact you separately with your prize details. This wee...

327 views 9 7
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you