Skip to end of banner
Go to start of banner

How to make user-defined column styles persist - Cloud

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Current »

This page provides an example to enforce user-defined styles in columns. For this example, let's consider the Monthly Temperatures Table, for which you want to set background colors and borders of various columns and auto-number all the rows.

Select this macro

Macro nameTable Plus
Macro syntax (Old editor){table-plus}
Macro syntax (New editor - case insensitive)/Table Plus

Define these parameters/values

Auto number on each rowOn

Column styles

(Comma separated styles)

border:5px solid #c1c7d0;background:lightgrey;padding:15px, background:lightgreen;color:red;font-size: 160%, background:lightyellow;border: 3px dotted green, 2

Apply Column styles to data column cellsOn

Parameters set in the macro editor

Example result

When the Apply Column styles to data column cells is disabled, certain styles like padding and text color are not applied due to the existing default Confluence styles as shown:

When the Apply Column styles to data column cells is enabled, the table is displayed with all the specified styles after overriding the default Confluence styles as shown:

  • No labels