---
title: "How to make user-defined column styles persist - Cloud"
canonical: "https://support.appfire.com/space/TBL/74812963/How%20to%20make%20user-defined%20column%20styles%20persist%20-%20Cloud"
format: markdown
---
> Macro (aura-html)

<span style="color: #000000">This page </span><span style="color: #000000">provides an example to enforce</span><span style="color: #000000"> </span><span style="color: #000000">user-defined</span><span style="color: #000000"> styles in columns. For this example, let's consider the</span> [Monthly Temperatures Table](https://appfire.atlassian.net/wiki/spaces/TBL/pages/74812593)<span style="color: #000000">, for which you want to set background colors and borders </span><span style="color: #000000">of</span><span style="color: #000000"> various columns and auto-number all the rows.</span>

### <span style="color: #000000">Select this macro</span>

|  |  |
| --- | --- |
| <span style="color: #000000">**Macro name**</span> | <span style="color: #000000">*Table Plus*</span> |
| <span style="color: #000000">**Macro syntax (Old editor)**</span> | <span style="color: #000000">*{table-plus}*</span> |
| <span style="color: #000000">**Macro syntax (New editor - case insensitive)**</span> | <span style="color: #000000">*/Table Plus*</span> |

### <span style="color: #000000">Define these parameters/values</span>

|  |  |
| --- | --- |
| <span style="color: #000000">***Auto number on each row***</span> | <span style="color: #000000">On</span> |
| <span style="color: #000000">***Column styles***</span><br><span style="color: #000000">(Comma separated styles)</span> | <span style="color: #000000">*border:5px solid #c1c7d0;background:lightgrey;padding:15px, background:lightgreen;color:red;font-size: 160%, background:lightyellow;border: 3px dotted green, 2*</span> |
| <span style="color: #000000">***Apply Column styles to data column cells***</span> | <span style="color: #000000">On</span> |

### <span style="color: #000000">Parameters set in the macro editor</span>

![Advanced Tables Table Plus macro settings for column styles](media://0fe6e6f4-fabb-46aa-98ad-20b21fba61fb)

![Specify the column Styles ](media://d3727d41-6bc2-4b9c-b940-99d9dfc7bb18)

### Example result

<span style="color: #000000">When the </span><span style="color: #000000">*Apply Column styles to data column cells*</span><span style="color: #000000"> is disabled, certain styles like padding and text color are not applied</span><span style="color: #000000"> due to the existing default Confluence styles as shown</span><span style="color: #000000">:</span>

![Advanced Tables table before userdefined column styles](media://cb564c0b-c2e3-4a68-a852-7d5e635075b5)

<span style="color: #000000">When the </span><span style="color: #000000">*Apply Column styles to data column cells*</span><span style="color: #000000"> is enabled, </span><span style="color: #000000">the table is displayed</span><span style="color: #000000"> with all the specified styles after overriding the default Confluence styles as shown:</span>

![Advanced Tables table after userdefined column styles persist](media://a71edcdd-102f-4444-a71f-bad628b6bd9c)