The Center macro allows you to quickly and easily center content.

Instructions

  1. Navigate to the page you want to edit.

  2. Click Edit.

  3. Click the location where you want to add centered content.
  4. Insert More Content Other Macros.

  5. Select the Center macro from the Macro Browser.

    Macro Browser with Center macro highlighted.
  6. Add an optional CSS class to the macro to customize the content.

    ParameterDescriptionTypeDefaultRequired

    CSS Class

    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.

    string

    none

     (error)

  7. Click Insert. The macro placeholder displays.

  8. 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.