cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JB0007
Helper V
Helper V

Format HTML table individual columns

Hi Power Automate community,

 

I have a flow that get items from a SharePoint list and send an email with those items to a specific user.

 

JB0007_2-1632769549756.png    JB0007_3-1632769581010.png

 

In the Format Compose, I am using the CSS of Ryan Maclean in order to format the tables as below:

JB0007_1-1632769316503.png

The problem is that the tables are returned in different styles. For example, each table has a different column width and I want to prevent that. 

 

I don't know if there is a way that I can determine the columns width of the tables. For example, I want the Task Number shorter and the Task and Comments columns wider.

 

Can someone please help me? 

There are some columns that doesn't contain long sentences and I want to set a fixed width for those columns.

 

4 REPLIES 4
VJR
Super User
Super User

Hi @JB0007 

 

Are you able to set the width of the individual columns in the below section.

 

https://ryanmaclean365.com/2020/01/29/power-automate-html-table-styling/

 

VJR_0-1632816972066.png

 

 

If not also please check the concept of n-th child.

https://stackoverflow.com/questions/40134586/how-to-set-different-column-in-table-to-be-different-wi...

Click on "Run code snippet" button under each of the answers given in the above link

Hi @VJR ,

 

Thank you for your feedback, I have tried the code but the table stayed the same:

 

JB0007_1-1632835004344.png

 

JB0007_2-1632835057514.png

 

Output:

JB0007_3-1632835102828.png

 

 

Hi @JB0007 

I am having the same issue - have you solve your issue on column width?

 

 

@Nestedune 

 

Yes, I have used the Select action and passed the HTML / CSS code for each data in the Select columns.

 

JB0007_0-1668078898966.png

 

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Users online (4,934)