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
Frequent Visitor

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
Community Support

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 Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

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!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (7,282)