---
title: "Advanced column styles"
canonical: "https://support.appfire.com/space/TBL/74814369/Advanced%20column%20styles"
format: markdown
---
<span style="color: #000000">This page provides an example to make user defined styles persist for 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***</span> | <span style="color: #000000">*{table-plus}*</span> |

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

|  |  |
| --- | --- |
| <span style="color: #000000">***Column settings > Formatting > Column Styles (1***</span><br><span style="color: #000000">***2***</span><br><span style="color: #000000">***3***</span><br><span style="color: #000000">***4)***</span> | <span style="color: #000000">*background:lightgrey; padding:15px;*</span><br><span style="color: #000000">*background:lightblue; color:teal*</span><br><span style="color: #000000">*background:lightyellow; border: 3px dotted green;*</span><br><span style="color: #000000">*2*</span> |
| <span style="color: #000000">***Column settings > Numbering & Totaling > Insert auto number column***</span> | <span style="color: #000000">On</span> |
| <span style="color: #000000">***Column settings > Numbering & Totaling > Auto number column styles***</span> | <span style="color: #000000">*border: 5px solid #c1c7d0;*</span> |
| <span style="color: #000000">***Column settings > Numbering & Totaling > Apply Column styles to data column cells***</span> | <span style="color: #000000">On</span> |

> ⚠️ <span style="color: #000000">Observe that column 1 styling is repeated in column 4, but, value 2 is used instead of 1. This is because </span><span style="color: #000000">*Insert auto number column *</span><span style="color: #000000">in </span><span style="color: #000000">**On**</span><span style="color: #000000">.</span>

### <span style="color: #000000">Screenshots</span>

![ColumnStyles_01.jpg](media://63d83979-e09f-4778-830d-0f3dbd124225)

![ColumnStyles_02.jpg](media://1eb7c5f6-b02a-4eba-a072-0f5997f26783)

### 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 off, certain styles like the padding and the text color are not applied as shown:</span>

![image](media://17f630a4-452c-431c-83bc-b23bf54e83f7)

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

![image](media://e31e16c7-19c1-48ce-9bd6-7a52bc42b979)