Forums

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

is it possible to set a Style tag on page of Confluence from page creation API?

shota.shimizu May 22, 2024

HTML macro is not available in the Confluence Cloud, so some pages cannot be imported as is.

I would like to apply the following Style tags that I was able to display using HTML macros.

<style>
.company-main {
position: relative;
background-color:ffffff;
background-position: 50% 50%;
padding: 40px 20px;
}
.company-main:after {
position: absolute;
z-index: 1;
・・・・

When creating a page via the API like below, I assume it can be created in HTML, butis it possible to set a Style tag?
(https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-page/#api-pages-post)

We would appreciate your confirmation. 

 

1 answer

0 votes
Brant Schroeder
Community Champion
September 27, 2024

@shota.shimizu

Even if you create the page using the API it would not apply the html in cloud so the style tag would not be applied to the confluence cloud page.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events