Forum Discussion

tsmolskow's avatar
tsmolskow
Copper Contributor
Sep 22, 2024

Center Text in Email

Hello Community,

 

   I am creating a new flow for SharePoint Online Modern in Power Automate. In my flow I need to send an email, and the top text needs to be centered. I have switch to code mode, and I have tried to add the "center" tag or a style tag with "text-align: center" attribute, but nothing is taking or working.

 

   Has anyone else been able to center text in a Power Automate workflow? If so, please share examples and guidance.

 

Thanks!

 

Tom

 

1 Reply

  • Adeboye_Olaide's avatar
    Adeboye_Olaide
    Copper Contributor
    Hello Tom,

    I understand the frustration with centering text in Power Automate emails. It’s a common issue due to how different email clients handle HTML formatting.

    Here are a couple of approaches you can try:
    Use Inline CSS
    HTML Table for Layout

    I recommend testing your flow in different email clients (e.g., Outlook, Gmail) to ensure it displays correctly everywhere. Using tables for layout is a reliable workaround when dealing with tricky email rendering issues.
    Hope this helps, and feel free to reach out if you need further assistance

    Best regards,
    Olaide

Resources