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

Html Table

(0) ShareShare
ReportReport
Posted on by

Hello,

 

I was wondering if anybody knows how to create some space between the below columns or even make is so the numbers under the total cost are align with it. Also does anybody know how I can create lines around that table to make it look nicer ? 

Thanasis_0-1654871603358.png

 

Any help would be really appreciated 

 

Thank you 

 

Categories:
I have the same question (0)
  • BCLS776 Profile Picture
    8,994 Moderator on at

    A site such as https://www.tablesgenerator.com/html_tables# is really handy for quickly building the HTML to format a table. You make the table look the way you want, and then copy/paste the HTML code where you need it.

    Hope that helps,

    Bryan

  • Thanasis Profile Picture
    on at

    Hello @BCLS776 

     

    I just tried to copy paste something from there but still powerApps doesn't like it. Is there a way to just ad a space between my column so there not that close together ?

     

    Thanasis_0-1654873138460.png

     

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @Thanasis,

    Do you want to create a HTML table with lines around and align with column?

     

    Modify your formula as below:

    "<h3>Data Table HTML Email</h3>" & //This is optinal
    "<strong> Items: </strong>" & //This is optinal
    "<table width='100%' border='1' cellpadding='5' style='border:1px solid black; border-collapse:collapse'>" &
     "<tr style='background-color:#efefef'>
     <th>Title</th> <th> Price </th> <th> ID </th>
     </tr>
     <tr>" &
     Concat('BU Permission List', //*Here is your data source*//
     "<td>" & Title & " </td> //Here replacing with the column name in your list
     <td>" & Price & " </td>
     <td>" & ID & " </td>","</tr><tr>") &
    "</table>"

    The first two lines are optional, which is the header of the html table, you could start with the "<table width='100%'...

    "<table width='100%' border='1' cellpadding='5' style='border:1px solid black; border-collapse:collapse'>" &
    "<tr style='background-color:#efefef'>
    <th>Title</th> <th> Price </th> <th> ID </th>
    </tr>
    <tr>" &
    Concat('BU Permission List', //*Here is your data source*//
    "<td>" & Title & " </td>
    <td>" & Price & " </td>
    <td>" & ID & " </td>","</tr><tr>") &
    "</table>"

     

    vqiaqimsft_0-1655185547329.png

     

  • Thanasis Profile Picture
    on at

    @v-qiaqi-msft  thank you so much that worked 

  • Curiosity_user Profile Picture
    75 on at

    Hello,

     

    This is really helpful. Thank you so much.

     

    I just have some trouble. I have this button that will generate a PDF from this HTML text.

    The table in the PDF look like this:

    Curiosity_user_0-1686479068930.png

    But in Power Apps, It looks like this:

    Curiosity_user_1-1686479143383.png

     

    I followed what you've shared. What do you think is the problem?

    Maybe the Power Automate to generate PDF is in the wrong?

     

    Thanks in Advance.

  • boom_powerapps Profile Picture
    101 on at

    Hello everyone! Where would I be able to add the font color property in my HTML table code? Here is what I have:

     

    "<table width='100%' border='1' cellpadding='5' style='border:1px solid black; border-collapse:collapse'>" &
    "<tr style='background-color:#003865cc'> @Thanasis @Curiosity_user @v-qiaqi-msft @BCLS776 

     

  • Thanasis Profile Picture
    on at

    Hey @boom_powerapps 

    You can add the font color property within the <tr> tag to apply it to the entire row. Here's how you can incorporate it into your HTML code:

    <table width='100%' border='1' cellpadding='5' style='border:1px solid black; border-collapse:collapse'>
    <tr style='background-color:#003865cc; color: white'> <!-- Added color property here -->
    <!-- Your table row content goes here -->
    </tr>
    </table>

    In the example above, I've added color: white to the <tr> tag to set the font color of the row's text to white. You can adjust the color value (white in this case) to any color you prefer.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard