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

Community site session details

Session Id : 4VEft7livjt569FOVUiiuB
Power Automate - Building Flows
Unanswered

Customize Column Widths of Create HTML Table in Summary Email

Like (0) ShareShare
ReportReport
Posted on 19 Feb 2021 17:28:41 by 10

I have a Daily Summary Email i am working on. The 3 columns it pulls from a SharePoint Document Library is a Title, a Summary Text column, and the link to the file.

 

I have it becoming a table with a compose step before to modify the table like so:

jfielder_0-1613753182715.png

 

i need to adjust the link column to be 25% of the 100% and i can't figure out how to do that. I would also like if possible to change the text on the hyperlink, but I'm not sure that's possible. 

I have the same question (0)
  • eliotcole Profile Picture
    4,271 Moderator on 28 Oct 2021 at 09:47:09
    Re: Customize Column Widths of Create HTML Table in Summary Email

     I'll have a proper look later, and bless you to the great lord Ayrton Senna da Silva for your compliment, because I am certainly no super hero ... but on the surface that looks like mighty fine CSS.

     

      You could also use a text replace  to insert CLASSes or IDs into the HTML (and the 'A' links) created throughout.

     

     If your looks are just links, then I could  also suggest using any relevant text that comes with them and making proper links with text.

     

    Alternatively, it's very understandable for emails to not do that, because:

    • Avoiding spam issues.
    • Accessibility (reader issues for the blind) issues.
    • Transparency from a business perspective.
    • It's  just easier 😅.

    In which case you might not want them formatted as literal links at all. But if you do still want to you can still make the HTML useful, because good HTML (in my humble opinion) indicates what things actually are.

     

     For example  if I'm  listing the indexia credits on a comic book, like so:

    •  Title: Sensational Spider-Man Annual#1
    •  Writer: Matt Fraction
    •  Artist: Salvador Larocca

    I would want to put a SPAN tag around "Sensational Spider-Man Annual #1" with the CLASS of "comicTitle" to indicate what it is.

     

     This allows people exactly like the kind of nerds that hang out on a Microsoft automation community to extract the information that they want, accurately.

     

    I don't have access to full formatting here so I'll skip the full code, but  that would be <SPAN CLASS="comicTitle">Sensational Spider-Man Annual #1</SPAN> for that example.

     

    Anyway, all of that is just to say that you could put the CLASS of "link" or make incremental IDs of "link001", "link002", "link003", etc.

     

    If I think of more I'll either edit in, or post again.

  • tkat Profile Picture
    9 on 27 Oct 2021 at 19:54:17
    Re: Customize Column Widths of Create HTML Table in Summary Email

    I have the exact same issue. I used Ryan Maclean's CSS code (below) to format the table but I need the first column to be a fixed width (or autofit) and not wrap the header text. A bonus would be to limit text in the second column so that it's only a preview. I've tagged @eliotcole and @ScottShearer; these superheroes helped me last week although I imagine you've already resolved this since it's been a long while. 

     

    <style>
    table {
    border: 1px 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: 15px;
    }
    table thead {
    background: #364248;
    border-bottom: 2px solid #444444;
    }
    table thead th {
    font-size: 15px;
    font-weight: bold;
    color: #FFFFFF;
    border-left: 2px solid #D0E4F5;
    }
    table thead th:first-child {
    border-left: none;
    }
    </style>

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2

Loading complete