I am trying to compose the html by the below formula, its working without error as shown in the below image, but I need more result.:
replace(replace(body('CreateHTMLtablesubinv'),'<table>','<table border="1" cellspacing="0" style="padding:10px;width:100%;font-style:normal;font-family:Arial;color:black;background-color: rgb(255,255,255);font-size:13px">') ,'<th>','<th style="text-align:center;color:white;background-color:rgb(46,117,182)">')
I need to fix the below :
a) padding not working, but I applied in the code for padding to 10px, could not understand the mistake
b) last 3 column, want to keep the data algin to right as these are currency related. not looking like this.
Please guide how to fix this 2 requirement :
image of the current result:
Image of my flow:
I am able to fix the problem of padding by below changes, but still unable to solve the last two column align right issue
replace(replace(replace(body('CreateHTMLtablesubinv'),'<table>','<table border="1" cellspacing="0" style="padding:10px;width:100%;font-style:normal;font-family:Arial;color:black;background-color: rgb(255,255,255);font-size:13px">') ,'<th>','<th style="text-align:center;color:white;background-color:rgb(46,117,182)">'), '<td>', '<td style="padding-left:5px;">')
Please guide is it possible, if yes how and what code to add in above to acheive this.
Tried with third replace formula also - no error but no result
replace(replace(replace(body('CreateHTMLtablesubinv'),'<table>','<table border="1" cellspacing="0" style="padding:10px;width:100%;font-style:normal;font-family:Arial;color:black;background-color: rgb(255,255,255);font-size:13px">') ,'<th>','<th style="text-align:center;color:white;background-color:rgb(46,117,182)">'), '<td>', '<td style="nth-child(1) {text-align: right;}">')
any idea, possible or not? if not not no need further test
Any idea or any alternative, possible or not possible to achieve this requirement.
pls guide
I hope the below link method need to be used, but not sure
https://www.w3schools.com/cssref/tryit.php?filename=trycss3_nth-child_odd_even
<style>
p:nth-child(odd) {
background: red;
}
p:nth-child(even) {
background: lightgreen;
}
But how to be used in my case, how to call the align
please guide
Michael E. Gernaey
566
Super User 2025 Season 1
David_MA
516
Super User 2025 Season 1
stampcoin
492