The Center macro allows you to quickly and easily center content.
Navigate to the page you want to edit.
- Click the location where you want to add centered content.
Insert More Content > Other Macros.
Select the Center macro from the Macro Browser.
Add an optional CSS class to the macro to customize the content.
Parameter Description Type Default Required
Option to apply a custom CSS class to the element. Enter the CSS class name(s) to apply to the macro (case sensitive); multiple classes can be separated by a space or comma. Do not include the
.selector in the class name. Classes must be part of your Global Confluence CSS or defined in a CSS Stylesheet macro that you have added to your page.
Click Insert. The macro placeholder displays.
- Enter your desired content then save the page. Text entered in the macro is centered on the page or within the container. The following example was created by adding the CSS Stylesheet macro to the page.