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.

 

2 REPLIES 2
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

 

 

Helpful resources

Announcements
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (3,958)