web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Automate
Unanswered

Format HTML table

(0) ShareShare
ReportReport
Posted on by 90

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
    90 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard