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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • 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

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

             </div>       

 

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

1 answer

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

Hello @kraken

The style macro looks to be deprecated now, as discussed here - https://confluence.atlassian.com/confcloud/we-re-cleaning-up-the-macro-browser-946028471.html

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?

Thanks.

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.

Thanks

/Alan

Like Parker Higgins likes this

Suggest an answer

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

What do you think is the most *delightful* Confluence feature? Comment for a prize!

- Create your own custom emoji 🔥 - "Shake for Feedback" on mobile 📱 - An endless supply of GIFs via GIPHY 🤩 Is there anything quite as nice as a pleasant surprise? Comment below with what...

408 views 23 8
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