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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

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

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (2,470)