cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
kylewhit
Level: Power Up

How can I left-align my email content?

I have a Flow that sends an email containing HTML. It seems that Flow is adding "TEXT-ALIGN: center" as an inline style to the <body> element of my mail content, which then messes up the formatting of my mail. Is this the intended behavior? If so, is there a workaround? I'm not trying to do anything fancy, I'd just like the contents of my email to be left-aligned rather than centered.

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: How can I left-align my email content?

Hi @kylewhit,

 

Would you please share more information about which Email Action you used here?

If you are using the Office 365 Outlook Send An Email Action, then please click the Advanced option, there would be Is HTML available to select, set it to Yes, and then use the HTML tag to left-align the Email Body.

<p style="text-align:left;">
This text is left aligned
</p>

Reference:

78.PNG

If this is not the case, then please share a screenshot here, I will then help to take a look.

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Community Support Team
Community Support Team

Re: How can I left-align my email content?

Hi @kylewhit,

 

Would you please share more information about which Email Action you used here?

If you are using the Office 365 Outlook Send An Email Action, then please click the Advanced option, there would be Is HTML available to select, set it to Yes, and then use the HTML tag to left-align the Email Body.

<p style="text-align:left;">
This text is left aligned
</p>

Reference:

78.PNG

If this is not the case, then please share a screenshot here, I will then help to take a look.

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

kylewhit
Level: Power Up

Re: How can I left-align my email content?

Yes, I've found that this works correctly. However, adding this attribute to every single element in the mail is very tedious so a CSS solution (or a fix to change the existing behavior of automatically adding "text-align: center" to the body) would be preferable.

 

Highlighted
DionGoile
Level: Powered On

Re: How can I left-align my email content?

Put the style of your parent most tag and it should apply to all children unless specified elsewhere.

You may need need to create a parent div in the body field of your email to with the style applied to place data into.

Helpful resources

Announcements
firstImage

Better Together Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (4,667)