Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Formatting for the Expand macro

Looking to add some formatting to an expand section for my team to make an expand selection more visible. Instead of a white background with blue font, I was hoping to have a gray background when it is collapsed, similar appearance to the heading row of a table.


Is this possible? Please include a step by step how to if so, thanks!

2 answers

1 accepted

2 votes
Answer accepted
Diego Atlassian Team Feb 26, 2020

Hello @Maicen Young !

Currently, there are no formatting options that allow you to achieve the objective that you need. Here is our documentation on the macro:

What you could do to achieve a similar result is to insert the expand inside a table header cell:

In Edit mode:

Anotação 2020-02-26 184417.jpg

In view mode

Anotação 2020-02-26 184531.jpg

Doing this will render a gray background while the Expand is collapsed. Hope this helps! Looking forward to your reply.

Thank you @Diego this works great!

Diego Atlassian Team Feb 28, 2020

Glad to know that this helped you out!

This is the way

You might also consider UI Expand Macro, part of the Refined Theme for Confluence.  It includes a suite of enhance macros that provide a bit more flexibility.  Interestingly the default for their expand macro happens to be with a gray background as you described.

Where is the UI Expand Macro found? I am running Confluence Data Center 7.4.1

Suggest an answer

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

An update on Confluence Cloud customer feedback – June 2022

Hi everyone, We’re always looking at how to improve Confluence and customer feedback plays an important role in making sure we're investing in the areas that will bring the most value to the most c...

101 views 0 1
Read article

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