Table Style in Rich Text field

  • 0
  • 1
  • Question
  • Updated 3 months ago
  • In Progress
I am trying to create a table within a Rich Text field.
Somehow, the style control in the table is not working

"<table width='600' style='border-collapse:collapse;border-spacing: 1px 1px' cellpadding='0' cellspacing='0' align='center'>"

 When comparing  'border-collapse:collapse’ vs  'border-collapse:seperate’

‘border-spacing: 1px 1px'  vs ‘border-spacing: 15px 15px'

There's no difference on the format.  
Any suggestions are highly appreciated!
Photo of Hongkun liang

Hongkun liang

  • 172 Points 100 badge 2x thumb

Posted 1 year ago

  • 0
  • 1
Photo of Ben L

Ben L

  • 130 Points 100 badge 2x thumb
Give this a look:

"<table style\"width:100%\"; border=\"1\">\n
<tr><td SPAN STYLE=\"color: black; font-size: 12pt; font-weight: bold\">"&"Project name"&"</td>\n
<td SPAN STYLE=\"color: black; font-size: 10pt; font-weight: bold\">"&[Project Name]&"</td></tr>\n
<tr><td SPAN STYLE=\"color: black; font-size: 12pt; font-weight: bold\">"&"Fiscal Year"&"</td>
<td SPAN STYLE=\"color: black; font-size: 10pt; font-weight: bold\">"&[Fiscal year]&"</td></tr>\n
<tr><td SPAN STYLE=\"color: black; font-size: 12pt; font-weight: bold\">"&"Institute / Department Name"&"</td>
<td SPAN STYLE=\"color: black; font-size: 10pt; font-weight: bold\">"&[Institute / Department Name]&"</td></tr>\n
<tr><td SPAN STYLE=\"color: black; font-size: 12pt; font-weight: bold\">"&"Service Line / Area of Focus"&"</td>
<td SPAN STYLE=\"color: black; font-size: 10pt; font-weight: bold\">"&[Service Line / Area of Focus - Assigned]&"</td></tr>\n
<tr><td SPAN STYLE=\"color: black; font-size: 12pt; font-weight: bold\">"&"Region"&"</td>
<td SPAN STYLE=\"color: black; font-size: 10pt; font-weight: bold\">"&[Region/Location - Assigned]&"</td></tr>\n
<tr><td SPAN STYLE=\"color: black; font-size: 12pt; font-weight: bold\">"&"Project Owner"&"</td>
<td SPAN STYLE=\"color: black; font-size: 10pt; font-weight: bold\">"&ToText(UserToName([Project owner]))&"</td></tr>\n
<tr><td SPAN STYLE=\"color: black; font-size: 12pt; font-weight: bold\">"&"Project Requestor"&"</td>
<td SPAN STYLE=\"color: black; font-size: 10pt; font-weight: bold\">"&[Project requestor name]&"</td></tr>\n
<tr><td SPAN STYLE=\"color: black; font-size: 12pt; font-weight: bold\">"&"Leadership Name"&"</td>
<td SPAN STYLE=\"color: black; font-size: 10pt; font-weight: bold\">"&ToText([Project Request - Leadership name])&"</td></tr>\n
<tr><td SPAN STYLE=\"color: black; font-size: 12pt; font-weight: bold\">"&"Confidential?"&"</td>
<td SPAN STYLE=\"color: black; font-size: 10pt; font-weight: bold\">"&If([Confidential?]=true, "Yes","No")&"</td></tr></table>"
Photo of Ben L

Ben L

  • 130 Points 100 badge 2x thumb
End result will look like this attached image.