In Confluence, you can right, left, center align or justify text. If you want to use multiple alignments for text or pictures that are part of a paragraph, you have to use an User-Macro. The User-Macro tells the exporter which content to align different from the style set in the exporters template.
Click Save. The macro is now saved and must be defined in the template.
To define the macro in the template:
Open your template and click Content Formatting.
Depending on the macro alignment, enter the following code at the end of the CSS:
Right Alignment
p.scroll-right-aligned {
text-align: right;
}
CODE
Center Alignment
p.scroll-center-aligned {
text-align: center;
}
CODE
Justified
p.scroll-justified {
text-align: justify;
}
CODE
Click Save. The macro is defined in the template and the content will be exported in the wanted alignment.
To use the macro, enter '{macro-name' and enter the content.
Please make sure to insert every content paragraph in a seperate macro. If you have multiple paragraphs in the same macro-body, the alignment is not rendered correctly.
Cookie Notice
We use cookies to create a secure and effective browsing experience for our website visitors and to understand how you use our site (i.e. Google Analytics). For more information: Click Here