How to style table columns - Cloud
Overview
This page outlines an example of how to style table columns using any of the Advanced Tables for Confluence macros. You can apply styles to columns with the Column styles parameter. It defines column level CSS at the HTML column level, where as the Column attributes parameter works at the element level and provides more than CSS styling capabilities. Column styles can be easier to use and is recommended for most use cases. However, it does not cover every use case that is available with the Column attributes parameter.
Look at the Helpful resources section for other styles related documentation.
Macro browser input
Select any of the macros
Macro name |
|
Macro syntax (Old editor) |
|
Macro syntax (New editor - case insensitive) |
|
Define these parameters/values
Auto total numeric columns | On |
Column types | s,f"0,0",f"$0,0.00" |
- Due to the values set in the Column types parameter, the Auto Total row also follows the same column types.
- See Formatting options for numeric rows for a full list of available formatting options.
Parameters set in the macro editor
Wiki markup input (Old editor)
For a table built using the CSV (Comma Separated Values) macro:
{csv:output=wiki|autoTotal=true|columnTypes=s,f"0,0",f"$0,0.00"} "Item","Units","Revenue" "Kazoos","1,368","$4,074.25" "Accordions","445","$222,500.63" "Mandolins","2,296","$1,033,200.00" {csv}
Example result
Helpful resources
- Common table capabilities
- How to make user defined column styes persist
- How to make user defined row styles persist
Other examples
Visit our full list of product examples for additional inspiration!
Log a request with our support team.
Confluence®, Jira®, Atlassian Bamboo®, Bitbucket®, Fisheye®, and Atlassian Crucible® are registered trademarks of Atlassian®
Copyright © 2005 - 2024 Appfire | All rights reserved. Appfire™, the 'Apps for makers™' slogan and Bob Swift Atlassian Apps™ are all trademarks of Appfire Technologies, LLC.