Versions Compared

Key

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

This page provides an example to make enforce user-defined styles persist for rows. For this example, let's consider Monthly Temperatures table for which you want to set styles of various rows, including the header row.

Select this macro

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


Define these parameters/values

Row formatting > Data rows > Row Styles (1

2

3)background:lightgrey

 Row styles

(Comma separated styles)

font-size:160%;padding:20px;border: 5px solid #c1c7d0, color:green;font-size:

1em

125%;padding-top:25px

;

, background:lightblue;

font-size:1.2em

color:red;border: 2.5px dotted black

, font-style:italic;font-size:

1em

175%;padding-left:35px

Row formatting > Header & Footer rows > Header row styles

font-size: 1.5em; padding:20px; border: 5px solid #c1c7d0;

Row formatting > Advanced settings > Apply Row styles to data row cellsOn

Screenshots

Image Removed

Image Removed

Image Removed

Example results

...

Apply row style to individual cellOn

Parameters set in the macro editor

Image Added

Example result

When the Apply row style to individual cell is off, certain styles for cell padding or borders are not applied due to the existing default Confluence styles as shown:

Image RemovedImage Added

When the Apply Row styles to data row cells is row style to individual cell is toggled on, the table is displayed with all the specified styles are applied after overriding the default Confluence styles as shown:

Image RemovedImage Added