
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2017 06:59 AM
Hello,
I am still a beginner at HTML and CSS but having problems with Cell spacing or Padding not working within a form on the Service Portal. Any thoughts on what I may be doing wrong?
Here is what it looks like on the Service Portal. No cell spacing or cell padding.
Here is the source code.
<table style="height: 122px;" width="423" cellspacing="8" cellpadding="5">
<tbody>
<tr>
<td><img style="align: middle;" src="sys_attachment.do?sys_id=032115dc0f72cb00b855f08ce1050ef2" align="baseline" border="" hspace="" vspace="" /></td>
<td scope="row">
<p><span style="font-family: 'arial black', 'avant garde';"><strong>*** RISK / SAFETY / THREAT / DANGER</strong> ***</span></p>
<p><span style="font-family: arial, helvetica, sans-serif;">Does this issue potentially or is causing a risk, safety, threat or dangerous situation?</span></p>
</td>
</tr>
</tbody>
</table>
Thank you,
-Wesley
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2018 07:19 PM
I found out this is a problem with ServiceNow. I have problem ticket open with ServiceNow HI Support, so we will see if they resolve the issue. In the mean as a solution, I add 8px white border around the image so it achieved the same effect.
-Wesley
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2021 09:13 AM
As of the Quebec release, this issue is still not resolved. Another workaround, provided by Michael A two years ago, is to produce the padding desired in the Cell properties area.
To add padding around text in a table add: padding: 5px 5px;
- Highlight all the table, click Table | Cell | Cell properties.
- Click on Advanced tab. Paste this code in the Style field: padding: 5px 5px;
- Click OK.
The padding: 5px 5px; The first 5px refers to spacing at the top and bottom and the second refers to the right and left side padding.
I've tested this solution in the Quebec release, and it works like a gem.
Good luck.