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

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

How do I change the size of the text in the header of an Expand macro?

I created a list of FAQs using the Expand macro and I would like to make the question larger. The macro does not accept HTML code.

How can I make the text in the question larger?

Thanks in advance!

1 answer

If you want to change the size of the text headers of all expand macros in the page, then you can use the following CSS:

.expand-control-text {

You can put the CSS inside a user macro like this:

## @noparams
.expand-control-text {

or you could install the last free version of the Content Formatting macros and put the code in the CSS macro.

Thanks Stephen.  Where/how exactly do I insert this? My HTML code looks like this:

<ac:structured-macro ac:macro-id="0e3a1d40-31c9-4e5b-81a5-e101af9462d3" ac:name="expand" ac:schema-version="1">
  <ac:parameter ac:name="title">Question</ac:parameter>
    <p>Answer </p>

Where can I find the css that this page uses?  

What you described in your comment is storage format, which is what Confluence stores in the background in order to generate your page. It is a form of XHTML, not actually HTML. HTML is what is shown when you are on a page and choose "View Source" in your browser. This is what the expand macro becomes once it is processed by the Confluence backend. This is what the CSS will affect. You can see this specific code by right clicking on the expand macro and choosing "Inspect".

If you have the HTML macro enabled, you can simply copy and paste this text inside:

.expand-control-text {

 and it will take effect on the page to increase the size of the expand macro header text.

Thanks very much Stephen, that worked fine!

Can either of you show me a screen shot on where to paste this?


.expand-control-text {

Selvestre. If you are using the cloud you can use the "Style" macro to change settings of your expand macro.

For example  add the follow text to the Style macro to change to bold and change size :

#com-atlassian-confluence .expand-control-text { font-weight: bold; font-size:130%; }

Does this still work with the new editing format?

Hi Filip,

Can you please help me. 

Would you know how to increase the font-size in a Digi Accordion?

I would really appreciate your response.



Suggest an answer

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

Get to know the Confluence team!

Go “behind the screen” to meet some of the Confluence Cloud team. In this video series, we tackle some of the hard-hitting questions you never knew you wanted the answer to!  Meet some of the ...

236 views 0 10
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