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

Table style

(0) ShareShare
ReportReport
Posted on by 128

Good Day Guys

 

I have a problem,

 

I have 2 parallel branch of actions..

and in each branch I have a create html tables.

Now I created different styles of for each html table.

As you can see below. 

The right side style with green highlight have a table tbody tr:last child background.

Amirin_1-1695222208499.png

 

The problem now is, even in the left branch style have no tr last child background, it still inherits the right side branch style as shown in the picture below.

Amirin_2-1695222343443.png

 

Please help me on how this 2 create html table have different style that shows in the email.

 

 

Categories:
  • Michael E. Gernaey Profile Picture
    53,975 Super User 2026 Season 2 on at

    Hi,

     

    How are the Styles set? Variables? Trying to validate if you are accidentally setting it to the same and not realizing it, but would need to understand the steps prior and what/if any variables/dynamic content you are using to set it.


    Cheers
    If you like my answer, please Mark it as Resolved, and give it a thumbs up, so it can help others
    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

  • Amirin Profile Picture
    128 on at

    There are no special settings I made.

    I only created compose and input this lines

    <style>
    table {
    border: 1px solid #1C6EA4;
    background-color: #FFFFFF;
    width: 100%;
    text-align: center;
    border-collapse: collapse;
    }
    table td, table th {
    border: 1px solid #AAAAAA;
    padding: 3px 2px;
    }
    table tbody td {
    font-size: 10px;
    }
    table thead {
    background: #1C6EA4;
    border-bottom: 2px solid #444444;
    }
    table thead th {
    font-size: 12px;
    font-weight: bold;
    color: #FFFFFF;
    border-left: 2px solid #D0E4F5;
    }
    table thead th:first-child {
    border-left: none;
    }
    table> tbody> tr:last-child {
    background:#FFBF00;
    }
    </style>

  • Michael E. Gernaey Profile Picture
    53,975 Super User 2026 Season 2 on at

    Hi,

     

    And to verify you have 2 different composes, 1 for each Table correct? I just didn't see anything in the pictures or CSS that differentiated between 2 different tables, so if you accidentally assigned the same one to each table.
    Cheers
    If you like my answer, please Mark it as Resolved, and give it a thumbs up, so it can help others
    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

  • Amirin Profile Picture
    128 on at

    Yes I have different composes for different table. 

    Please read my post carefully. I have indicated and even have picture with green highlight in the picture of what their differences are.

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
Mohsin Ali Profile Picture

Mohsin Ali 377

#2
11manish Profile Picture

11manish 292 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 128

Last 30 days Overall leaderboard