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 Automate
Answered

Format HTML table

(0) ShareShare
ReportReport
Posted on by 98

Hi!

I need help with formatting an HTML table.

This is how the result looks right now:

Talko_0-1683811695647.png

 

So two things - 

First, there's no spacing between the table headers and it's bothering me!

And second, how can I change the font (which is for some strange reason - Time new Roman, instead of Arial)?

 

This is my current code in Compose action - 

 

 

<style>
table {
 border: 5px solid #1C6EA4;
 background-color: #EEEEEE;
 width: 100%;
 text-align: center;
 border-collapse: collapse;
}
table td, table th {
 border: 1px solid #AAAAAA;
 padding: 3px 2px;
}
table tbody td {
 font-size: 16px;
}
table thead {
 background: #1C6EA4;
 border-bottom: 2px solid #444444;
}
table thead th {
 font-size: 20px;
 font-weight: bold;
 color: #FFFFFF;
 border-left: 2px solid #D0E4F5;
}
table thead th:first-child {
 border-left: none;
}
</style>
@{body('Create_HTML_table')}

 

 

Can anyone help?
Thanks!

Categories:
I have the same question (0)
  • Verified answer
    annetoal Profile Picture
    1,934 Moderator on at

    Have a look at this and see if it gives you a start:

    <style>
    Table {
     font-family: Arial, Helvetica, sans-serif;
     border-collapse: collapse;
    }
    Table td, Table th {
     border: 1px solid #ddd;
     padding: 3px 3px;
     word-wrap: break-word;
    }
    Table th {
     font-size: 15px;
     font-weight: bold;
     padding-top: 12px;
     padding-bottom: 12px;
     text-align: left;
    }
    </style>

     

    If this helps, please mark it as a solution.

    Anne

  • Talko Profile Picture
    98 on at

    @annetoal Thank you, it works!

    I now understand the "Padding" is the responsible for the spaces.

     Thanks again

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 636

#2
Valantis Profile Picture

Valantis 372

#3
11manish Profile Picture

11manish 335

Last 30 days Overall leaderboard