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?
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
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
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?
Thanks for the clarification.I believe it's not possible with api's on confluence cloud.
Not possible, correct. You can only apply custom CSS on your very own macro and not on the page itself (or the whole Confluence)
It looks like you're new here. Sign in or register to get started.