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

Custom CSS on a page in Confluence Cloud

I am trying to get inline CSS working by following the steps below and is NOT working. 

  1. Create a new page
  2. Add a Style macro with css as the media and nothing in import
  3. Inside the style block, add the following content:

           .test {

             font-size: 100px;

             color: red;


       4. Add markup content below the style section on the same page

            <div class="test">

                 Hello World



After this, I publish and do not see my CSS applied. I am using confluence cloud. I am wondering why this is not working.

2 answers

I know this is old, but has any progress been made on custom styles?

0 votes
Divya K. V. Atlassian Team Nov 13, 2018

Hello @kraken

The style macro looks to be deprecated now, as discussed here -

Also it is no longer listed in the macro browser. The above post will also give you pointers on how to use the editor for different formatting needs.

Hope this helps and let us know if you have any further questions.

Thanks for the confirmation. So, what are the alternatives to build a page with custom CSS? How would I make the example above work? I don't see Style in the grid. What are the alternatives for it?


I was able to add a style macro to a wiki page as initially described in this thread, ie. the style macro has not been removed from the list of macros available (we also do have cloud Confluence).

No, it does not show in the initial list of macros from the drop-down menu in the editor, but pressing on "Other macros" and searching CSS, it shows up, and you get to insert it.
I find it VERY confusing that the option for adding the thing is there, it just does not work. This is the case, right?

Is Atlassian aiming to remove all types of CSS customizations in their cloud Confluence? (I also tried to put ”{style}" entries in headers or footers, which works, but then I get a big fat warning on my wiki pages).

I think I'm just confused about what the situation is altogether. Would you like to provide this possibility, then do it. If you don't want to provide this possibility, then remove all these hints that it might be possible in some way.

Please be clear! Which is it? I'm wasting a lot of time trying to find a solution.



Like # people like this

Suggest an answer

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

Confluence: Where work and wellness meet

Feeling overwhelmed by the demands of work and life? With a 25% increase in the prevalence of anxiety and depression worldwide during the pandemic, for most of us, it’s a resounding yes . 🙋‍♀️ ...

1,040 views 18 28
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