Forums

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

Is there a addon which render css(on html content) in confluence on sending API requests

Divya S June 5, 2025

I tried to migrate a page in form of html content through api to confluence cloud. But I see that my styles are not rendering in confluence. I came to know by default we can't render css through API but is there a way with add-ons?

2 answers

1 vote
Alex Medved _ConfiForms_
Community Champion
June 5, 2025

Hi @Divya S 

This will not work on cloud, as you can only apply css styles inside the macro and it renders inside the iframe. 
All you can is to apply your css styles to this iframe

Divya S
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!
June 7, 2025

My doubt is if my html content have confluence macro and then why I try to push to confluence my page inherit css but not confluence macro. Is there any addon to do that?

 

Divya S
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!
June 7, 2025

Thanks for the clarification.I believe it's not possible with api's on confluence cloud.

Alex Medved _ConfiForms_
Community Champion
June 7, 2025

Not possible, correct. You can only apply custom CSS on your very own macro and not on the page itself (or the whole Confluence)

0 votes
Roma Bubyakin _Wombats Corp_
Contributor
June 6, 2025

Hi @Divya S 

As I understand, you want to create pages and keep styling.

In this case, you are limited to the Atlassian storage format, however, it still allows inline CSS.
So your CSS in HTML should be converted to the inline format first.

Not everything is possible, but a lot of things still will work. We also conducted a small investigation on it. For more details, read CSS in Static Macros topic on the page

Regards, Roman

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events