Hi,
It is not possible for align a HTML Table with ?
Like this.
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:
<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:
replace(replace(replace(replace(body('Create_HTML_table'), '<', '<'), '>', '>'), '"', '"'), '^', ' ')
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.
@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">')
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!
WarrenBelz
146,601
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,942
Most Valuable Professional