Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

HTML macro alternatives for adding custom CSS to a Confluence Cloud page

Tony Chung
Contributor
February 8, 2023

I regularly use an HTML macro with a `<style>` CSS block that targets different elements to customize the look of our pages on Confluence DC (Server). Our organization is moving to Confluence Cloud, and I was informed the HTML macro is not available for cloud. I searched for alternatives to the HTML macro and found a few options, but all of them insert the HTML as an iFrame.

Are there alternate ways to use to perform this task? I use CSS primarily to add background images to certain blocks, and adjust spacing around other blocks. This prevents me from having to update the images when the background images change.

2 answers

0 votes
Zoriana Bogutska_Adaptavist_
Atlassian Partner
February 11, 2025

Hi @Tony Chung 

Because Confluence Cloud UX and UI have different looks and logic, HTML macros and CSS are not needed here as much as for the DC version. They can't do most of the things you used to have and, like you mentioned, can work only as a frame, unfortunately.  

I can suggest you solution that helps to update the background automatically but maybe this article might be interesting for you to learn how to add background colours and images using built-in and third-party solutions (without HTML https://community.atlassian.com/t5/App-Central-articles/How-to-add-a-background-colour-to-pages-in-Confluence-Cloud/ba-p/2931121 

 

 

0 votes
Tom Macedo
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 10, 2025

@Tony Chung Did you end up finding a solution for this?

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events