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
Unanswered

Format HTML table

(0) ShareShare
ReportReport
Posted on by 241

Hey, 

I am trying to format a HTML table and this works well using the code below. One simple thing I cannot seem to work out is how I specify the max row height of the table? 

At this stage I have a fixed column width, which makes the row height very big for fields with lots of text.. I want to cap it so it only displays a 'preview' of the text?

 

<style>
table{
background-color: #e3e5e8;
text-align:left;
font:arial;
border: 1px solid black;
border-collapse: collapse;
table-layout: fixed;
width: 1800px;
column-width: 300px
}
</style>

</div>
<div id = "table" >
 @{outputs('Compose_table')}
</div>

 

Categories:
I have the same question (0)
  • v-yamao-msft Profile Picture
    Microsoft Employee on at

    Hi @DanielaHo ,

     

    To change the height of a row in a table, you can use the height attribute for the <tr> tag.

     

    Please check the following Example in the following link:

    https://www.w3schools.com/tags/att_td_height.asp

     

    Please try with the following code:

     

    <style>
    
    table{
    
    background-color: #e3e5e8;
    
    text-align:left;
    
    font:arial;
    
    border: 1px solid black;
    
    border-collapse: collapse;
    
    table-layout: fixed;
    
    width: 1800px;
    
    column-width: 300px
    
    }
    
    </style>
    
    <table>
    
      <tr>
    
        <th>Month</th>
    
        <th>Savings</th>
    
      </tr>
    
      <tr>
    
        <td height="100">January</td>
    
        <td height="100">$100</td>
    
      </tr>
    
      <tr>
    
        <td>February</td>
    
        <td>$80</td>
    
      </tr>
    
    </table>

     

     

    Best regards,

    Mabel

     

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 589

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 284 Super User 2026 Season 1

Last 30 days Overall leaderboard