Skip to end of banner
Go to start of banner

Styling Table Columns

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 12 Next »

On this page

Overview

This page outlines an example of how to style table columns using the CSV macro, Table Plus macro, or Attachment Table macro, which are part of the NEWTBL add-on.

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 for more details.

Macro Browser Input

Select this Macro

Macro Name

Any of the following:

  • CSV (Comma Separated Values)
  • Table Plus
  • Attachment Table
Macro Syntax

Any of the following:

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

Define these Parameters/Values 

Each column can be styled by setting the style attribute. For example setting the columnAttributes parameter to:

style="border:0;background:lightgrey;",style="border:0;background:lightyellow;",style="border:0;background:lightgreen;"

Screenshot

 

Wiki Markup Input

For a table built using the CSV macro:

{csv:columnAttributes=style="border:0;background:lightgrey;",style="border:0;background:lightyellow;",style="border:0;background:lightgreen;"}
	Heading 1,Heading 2,Heading 3
	A1,A2,A3
	B1,B2,B3
{csv} 

 

Example Result

 

Other Examples

Visit our full list of product examples for additional inspiration!

 


Find answers from the community.

Ask a question to the community.

Log a request with our support team.




Availability

 




Examples for this Add-on

  • No labels