How can I set the column width of page properties report?
Asked by Sanjana Mehta:

I am trying to compare different page property reports on one page. However, due to column width differences, they are not aligned.

How can I set the column width on a page property report?


Answers:
author: Dmitry Ree
body: ![Page Properties Report Macro - Ability to define column widths.png](https://community.atlassian.com/t5/image/serverpage/image-id/30702i8269DA892331DB6C/image-size/large?v=v2&px=999 "Page Properties Report Macro - Ability to define column widths.png")

comments: author: Michael Klos
body: This is excellent - Thank you!


author: Artem Pletnev
body: [@Dmitry Ree](/t5/user/viewprofilepage/user-id/518842), can you help me.  
I have the next code of my page. Where I should put this style code and how I should change it for my example if I need set up width of Description column equal 250px.

![?????? ?????? 2018-10-02 ? 17.33.11.png](https://community.atlassian.com/t5/image/serverpage/image-id/33846iF445F46314187E1E/image-size/large?v=v2&px=999 "?????? ?????? 2018-10-02 ? 17.33.11.png")


author: Dmitry Ree
body: Artem, the style code above is embedded using the html macro which needs to be enabled by your administrator as it is disabled be default for security reasons.


author: Dorian Workman
body: [@Dmitry Ree](/t5/user/viewprofilepage/user-id/650417) I have the HTML Macro enabled but I cannot figure out how to get this to work. Presumably I put your code in an HTML macro window on the same page as the page properties report? How do I reference the columns in my page properties report? I want to adjust the width of the second column in my page properties report. I tried the code in the below screenshot, but it didn't work. Can anyone help please?

![Column Width.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/40020i2D4CD5AC727514BC/image-size/large?v=v2&px=999 "Column Width.JPG")


author: Artem Pletnev
body: [@Dorian Workman](/t5/user/viewprofilepage/user-id/2426340) try this

```
<style>table:first-of-type td.confluenceId {border: none;}table.aui.metadata-summary-macro Th:nth-child(3){ min-width:300px}table.aui.metadata-summary-macro Th:nth-child(4){ min-width:300px}table.aui.metadata-summary-macro Th:nth-child(5){ min-width:300px}</style>
```


author: Dmitry Ree
body: [@Dorian Workman](/t5/user/viewprofilepage/user-id/2426340) try adding the **td** tag for columns. You can inspect DOM elements through Chrome Dev Tools.


author: Dorian Workman
body: Thanks [@Artem Pletnev](/t5/user/viewprofilepage/user-id/2064048) this worked!


author: Caroline Burgess
body: Hi. I posted a similar question. If any of you are able to assist, I would really appreciate it!

Thanks.

<https://community.atlassian.com/t5/Confluence-questions/How-can-I-set-the-column-width-of-page-properties-report-follow/qaq-p/1148140>


author: Swapnil Kamble
body: Hello, I have the HTML Macro but I am unable to figure out where to put it? I have the same question: How do I reference the columns in my page properties report? can anyone help me \[ I am using Confluence Cloud\]


author: Katerina Kovriga {Stiltsoft}
body: If you have the [Table Filter and Charts for Confluence](https://marketplace.atlassian.com/apps/27447/table-filter-and-charts-for-confluence?hosting=cloud&tab=overview) app installed for your instance, you may try the [Table Transformer](https://docs.stiltsoft.com/display/public/TFAC/How+to+use+Table+Transformer+macro) macro and its changing column width feature.

Here is an [example](https://docs.stiltsoft.com/display/public/TFAC/Advanced+table+cells+formatting#Advancedtablecellsformatting-Changingcolumnwidth) with screenshots - just wrap your Page Properties Report macro in the Table Transformer macro and type in a custom SQL query.


author: KahWen Tan
body: Hi guys,

Does the above solution work if we have the HTML comment macro using the [Marco Toolbox](https://marketplace.atlassian.com/apps/1215202/macro-toolbox-html-tabs-expand?hosting=cloud&tab=overview) on Confluence Cloud?

```
<style>table:first-of-type td.confluenceId {border: none;}table.aui.metadata-summary-macro Th:nth-child(3){ min-width:300px}table.aui.metadata-summary-macro Th:nth-child(4){ min-width:300px}table.aui.metadata-summary-macro Th:nth-child(5){ min-width:300px}</style>
```


author: Shannon S
body: Hi Sanjana,

There is a feature request asking to be able to set the column widths for Page Properties Report Macro, that you're welcome to vote on and follow:

* [CONFSERVER-53330](https://jira.atlassian.com/browse/CONFSERVER-53330)

If you're on Server, you may be able to control the column width using the code mentioned [in this Community comment](https://community.atlassian.com/t5/Confluence-questions/Re-How-do-I-set-the-width-of-columns-in-my-tables/qaq-p/361160/comment-id/61143#M61143) as well as trying to go in with the [Source Editor plugin](https://marketplace.atlassian.com/plugins/com.atlassian.confluence.plugins.editor.confluence-source-editor/server/overview) later and specifying it there.

I hope this helps.

Kind regards,

Shannon