Versions Compared

Key

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

This page provides an example to make 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, and auto-number all the rows.

Select this macro

Macro nameTable Plus
Macro syntax{table-plus}


Define these parameters/values

Row formatting > Data rows > Row Styles (1

2


3
)

background:lightgrey; font-size:1em; padding-top:

5px

25px;

background:lightblue; font-size:1.2em; border: 2.5px dotted black

font-style:italic; font-size:

1.2em

1em;

text

padding-

align

left:

center

35px

Row formatting > Header & Footer rows > Header row styles

font-size:

2

1.

0em

5em;

font-style

padding:

bold

20px;

padding:8px

border: 5px solid #c1c7d0;

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

Screenshots

Example results

Table when When the Apply Row styles to data row cells was off is off, certain styles for cell padding or borders are not applied as shown:

Table when When the Apply Row styles to data row cells is toggled on, all the specified styles are applied as shown:

Here, the row styles for the header, first and third rows override the default styles.