Versions Compared

Key

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


Div
idProductTOC

On this page

Table of Contents
maxLevel1
excludeOn this page
typeflat
separatorpipe

Overview

This page outlines an example of how to style table rows using the CSV Table macro, Table Plus macro, or Attachment Table macro, which are part of the Advanced Tables for Confluence add-on app.

Since release 5.4, there are more capabilities to control table display characteristics. Specifically, setting the table class (default is confluenceTable), table style, and row styles. See Common Table Capabilities See Common table capabilities for more details.

Macro

...

browser input

Select this

...

macro

Macro Name

Any of the following:

  • Advanced Tables - CSV Table
  • Advanced Tables - Table Plus
  • Advanced Tables - Attachment Table
Macro Syntax

Any of the following:

  • {csv}
  • {table-plus}
  • {attachment-table}

...

Parameters/Values

Row formatting > Data rows > Row styles (1

2

3)

-

font-size:

1.5em;

font-style:italic;

background:lightyellow;

font-size:

0.9em;

font-style:italic;

background:lightblue


Tip

A blank style is what causes the normal Confluence behavior for the first data row.

Screenshot

Wiki

...

markup input

For a table built using the CSV macro:

Code Block
languagetext
linenumberstrue
{csv:autoNumber=true|rowStyles=font-size: 1.5em; font-style:italic;,, background:lightyellow, background:lightblue,}

        Month, Max, Min, Avg
        January,  25.5,  6.3, 15.9
        February, 32.4, 12.8, 22.6
        March,    44.6, 24.5, 34.6
        April,    59.7, 37.1, 48.4
        May,      72.5, 48.7, 60.6
        June,     81.3, 57.9, 69.6
        July,     85.2, 62.8, 74.0
        August,   82.5, 60.7, 71.6
        September,73.7, 51.7, 62.7
        October,  61.1, 40.1, 50.6
        November, 43.6, 27.4, 35.5
        December, 29.9, 13.6, 21.8  
{csv} 

...

Example result


Panel
bgColor#fafcd0


Div
stylepadding: 30px 15px 25px 25px; margin-bottom: 25px !important;
classmontage

Styling guide

Image Modified

The table styling shown in this example utilizes the common table capabilities of several Bob Swift Atlassian add-ons apps including TBL, SQL, and others.

For creative inspiration when styling your own Confluence Tables (including live examples) visit our Styling Guide guide for Tablestables.


Style
.montage img {padding-bottom: 25px !important;}


Other

...

examples

Visit our full list of product examples for additional inspiration!