cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Html code for table border

Hello

 

I am using this function to get the border in my HTML table: 

replace(body('Create_HTML_table'),'<table>','<table border ="1">')
 
I want to change the color of the border to grey or black... I tried this(<table style="border:1px solid #CCC; " width="600px" cellspacing="0">) code but didn't worked out...
How to fix that??
9 REPLIES 9
Dual Super User
Dual Super User

Re: Html code for table border

Hi @Anonymous 

 

replace(body('Create_HTML_table'),'<table>','<table style="border:1px solid gray; " width="600px" cellspacing="0">')

 

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Anonymous
Not applicable

Re: Html code for table border

@RezaDorrani 

 

This code is making only outer border I want the border between each column and row too. Thanks

Dual Super User
Dual Super User

Re: Html code for table border

Hi @Anonymous 

 

Add a style tag to the email html


<style>
table, th, td {
border: 1px solid gray;
border-collapse: collapse;
}
</style>

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Dual Super User
Dual Super User

Re: Html code for table border

Hi @Anonymous 

 

Did this work?

Anonymous
Not applicable

Re: Html code for table border

nope

 

Dual Super User
Dual Super User

Re: Html code for table border

@Anonymous 

 

Worked for me. Just tested it

Can you Paste screenshot of your send email code

Dual Super User
Dual Super User

Re: Html code for table border

@Anonymous 

replace(body('Create_HTML_table'),'<table>','<table width="600px" cellspacing="0">')

 

Using send email (v2) with HTML mode enabled as highlighted in yellow

 

Capture.PNG

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

hofneondeion21
Level: Powered On

Re: Html code for table border

@Anonymous 

 

Capture.PNG

 

Can do something like this. I don't know about the border color though. That is something you might have to embed via inline css e.g. <table style = 'border-color:#000;'> ... 

 

 

Community Support Team
Community Support Team

Re: Html code for table border

 

Hi @Anonymous ,

 

Please refer to this blog for some ways to change the style of your HTML table in Microsoft Flow.

https://alextofan.com/2019/02/14/flow-how-to-change-the-style-of-your-html-table-in-flow/

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (5,929)