Service Portal form cell spacing or padding not working?

Wesley Breshear
Tera Expert

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?

Table Properties.jpg   Instructions.jpg

Here is what it looks like on the Service Portal.   No cell spacing or cell padding.

Form view.jpg

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

1 ACCEPTED SOLUTION

Wesley Breshear
Tera Expert

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

View solution in original post

10 REPLIES 10

Hi Mahesh,

No fix by ServiceNow yet, so my temp solution was that I added a 10px white border around the image using a photo editor (GIMP) to get the spacing away from the text that would typically appear to the right of the image on the Service Portal.  As my ticket states it works correctly in the Native UI catalog form but the Service Portal form it doesn't apply any of these Table Properties conditions.

-Wesley

Thanks Wesley for your quick response.  I went for colspan and padding options for individual td tags to achieve cell spacing.

Thanks,

Mahesh.

Where is that?  Can you add a link or image.

-Wesley

can we have the problem ticket number  from HI Support

PRB1236920

https://hi.service-now.com/hisp?id=form&table=problem&sys_id=de9816dfdb86cf806015f47e0f9619b9&record_source=hisp_open_issues&tab_name=Company%20Open%20Issues&view=ess_sp

-Wesley