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

Community site session details

Session Id : ds1Sm7FAzkNxeZFGEve/T9
Power Automate - Using Flows
Answered

Align HTML table

Like (0) ShareShare
ReportReport
Posted on 17 Sep 2020 12:45:25 by 54

Hi,

 

It is not possible for align a HTML Table with    ? 

Like this.

1.png

 

 

  • Mace Profile Picture
    41 on 17 Oct 2023 at 16:30:24
    Re: Align HTML table

    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.

  • Verified answer
    CFernandes Profile Picture
    8,303 Most Valuable Professional on 17 Sep 2020 at 13:52:25
    Re: Align HTML table

    @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!

     

     

     

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

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2

Featured topics

Restore a deleted flow