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 Platform Community / Forums / Power Automate / HTML Table format not ...
Power Automate
Suggested Answer

HTML Table format not showing in email preview mode but showing in new window

(0) ShareShare
ReportReport
Posted on by 45
Dear Folks,
 
I'm having problem with my HTML table format not showing in email preview mode but showing in new window and also in my phone.
 
 
 
preview mode table format is not showing
 
 
 
 
 
but when open email in new window it is showing the format (the blue header table)
 
 
 
 
in my power automate flow
 
 
Anyone knows what's happening and how to solve it? Previously the HTML table format is alright showing in both preview and new window mode.
 
Thank you
  • CU30121719-0 Profile Picture
    on at
    Do not use CSS.  Follow these AI-generated suggestions:
     

    Inline Styles

    Outlook does not support many CSS properties, so it's best to use inline styles for most elements.

    Avoid Advanced Selectors

    Avoid using advanced CSS selectors like :hover, :first-child, and sibling combinators as they are not supported.

    Use Tables for Layout

    Use tables for layout instead of CSS positioning. This ensures better compatibility across different email clients.

    Test in Word

    Since Outlook uses the Word rendering engine, you can open your HTML email in Word to see how it will render in Outlook.

    By following these guidelines, you can create HTML emails that display correctly in Outlook and other email clients.

  • Chriddle Profile Picture
    8,729 Super User 2026 Season 2 on at
    Check if your CSS is supported by email clients.: www.caniemail.com
  • André Arnaud de Calavon Profile Picture
    816 on at
    Hi ,

    Can you tell us what exact style coding you added in your flow (CSS output)? I recently created an email with HTML table which did meet the intended style in both the preview and when opening the email.
  • Suggested answer
    David_MA Profile Picture
    15,705 Super User 2026 Season 2 on at
    You need to configure your e-mail message by putting it into HTML code view mode. To do that, click on </> in the Outlook action in the menu of the Body field. Then, you need to include CSS to format the table. For example:
     
    <style>
    Table {
      font-family: Arial, Helvetica, sans-serif;
      background-color: ; #EDF0F2;
      border-collapse: collapse;
      width: 100%;
      max-width: 820px;
    }
    Table td, Table th {
      border: 1px solid #ddd;
      padding: 3px 3px;
    }
    Table th {
      font-size: 15px;
      font-weight: bold;
      padding-top: 12px;
      padding-bottom: 12px;
      text-align: left;
      background-color: #0038A6;
      color: white;
    }
    </style>
     
    Note, if you use the new designer, it is notorious for messing up the HTML code you apply. Therefore, if you use the new designer, I would suggest composing the body of the e-mail in a Compose action and put the output of the Compose action in the body of the e-mail.
     
    In your screen shots, you show the CSS toward the bottom of the body of the e-mail. It needs to be at the top (first thing).
  • laclws Profile Picture
    45 on at
     
    Here is my style coding:
     
    <style>
      table {
        font-family: Arial, Helvetica, sans-serif;
        background-color: #EEEEEE;
        border-collapse: collapse;
        width: 100%;
      }
      table td, table th {
        border: 1px solid #ddd;
        padding: 3px 3px;
      }
      table th {
        font-size: 15px;
        font-weight: bold;
        padding-top: 12px;
        padding-bottom: 12px;
        text-align: left;
        background-color: #1C6EA4;
        color: white;
      }
    </style>
     

    It is showing in email new window but not in the preview mode. sometimes is like a glitch or something. I thought I saw it and the next moment the format is gone. Not sure what is happening. I'm sure the style is ok cause it is working before in both the new window and preview mode. 
  • Suggested answer
    Ellis Karim Profile Picture
    12,379 Super User 2026 Season 2 on at
     
    See the tool: https://flowtablestyler.com/ that will create inline CSS, which is easy to copy-and-paste into your flow:
     
     
    Copy the code into a Compose action:
     
    Pasting the generated expression into the Compose action's Expression (fx) field in Power Automate
     
    Add the Compose into the body of the email:
    Using the Compose output as the email body in a Send an Email action in Power Automate
     
    Ellis Karim
    Ellis Karim
    elliskarim.com  |  LinkedIn  |  Bluesky
    If this solved your issue, please mark it as ✅ Accepted Answer. If it helped, feel free to give it a 🩷 Like!

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 321 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 271

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard