web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Automate
Answered

Align HTML table

(0) ShareShare
ReportReport
Posted on by 54

Hi,

 

It is not possible for align a HTML Table with    ? 

Like this.

1.png

 

 

Categories:
I have the same question (0)
  • Verified answer
    CFernandes Profile Picture
    8,482 Most Valuable Professional on at

    @frixel2I assume you want to make your table presentable. 

     

     You might want to add a bit of padding to make your table presentable.

     

     

    replace(body('Create_HTML_table'),'<td>','<td style="padding:20px">')

     

     

    Untitled.png

     

    You can find more ideas at https://www.sharepointsiren.com/2019/07/formatting-html-tables-in-flow/

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

     

     

     

  • Mace Profile Picture
    41 on at

    For everyone who comes across this. You can also inject the text alignment within the "Create HTML Table" action, if you want to align each column individually:

    columnalign1.png

    <div style="text-align: left">YOUR REFERENCE</div>

     

    Same as for the other solutions, you need to replace the special characters to make sure you get proper HTML code:

    columnalign2.png

    replace(replace(replace(replace(body('Create_HTML_table'), '&lt;', '<'), '&gt;', '>'), '&quot;', '"'), '^', ' ')

     

    Bonus tip: As you can see I added a "^" in the table headers, which I then replace to allow for spaces in the header titles.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 291 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 238 Super User 2026 Season 1

#3
Power Platform 1919 Profile Picture

Power Platform 1919 109 Super User 2026 Season 1

Last 30 days Overall leaderboard