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

Announcements

News and Announcements icon
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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 250 Super User 2026 Season 1

#2
Expiscornovus Profile Picture

Expiscornovus 222 Most Valuable Professional

#3
Haque Profile Picture

Haque 174

Last 30 days Overall leaderboard