Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This article explains how to center align the column data in Table plus macro using the app to the center with the Table Plus macro of the Advanced Tables for Confluence app.

Instructions

  1. Log into your Confluence instance, and create a new page or click or click Image Modifiedto edit an existing page.
  2. Insert Insert the Advanced Table - Table Plus macro and insert a table inside the macro. For this example, consider the following table inside the macro:

  3. Edit the Table plus macro Edit the macro and go to Column Settings→ Start formatting then click Cogwheel Image Removed and select Settings > Formatting > Cog wheel (Image AddedShow column attributes as shown:

  4. Under the Column attributes, insert

    Enter style="text-align:center" under Column attributes, and click Save settings. 

    Image Removed
    Below is the output displayed
    Note

    As the sample table contains a single column, the style is provided for the first column (in the screenshot, refer to Columns with number 1). Use this style for the columns as per your requirement in your table(s).


    Tip

    Use Add formatting to specify formatting for other columns in your table.

    Image Added

The output displays with data aligned to center.

...

For the given example, the table is displayed as:
Image Added

Info

We recommend this to be tested in the stage environment before being implementing in the production.