We are delighted to share our new EIC Delivery Methodology for efficiently managing Saviynt Implementations and delivering quick time to value. CLICK HERE.

Dynamic bordering in email template

New Contributor II
New Contributor II


I am getting extra space in email template on the right side which is not required. Please can anyone suggest how to remove that space in that email template. I am attaching the screenshot for referrence.


Attaching the HTML code also:

<!DOCTYPE html>
    border: 1px solid black;
         text-align: justify; 
<div class="border">
<br><img   src="https://Domain/ECMv6/api/idw/resource/image/app/custom5.png" style="width:750px;height:90px;border-style: solid;
  border-width: 0px 0px 0.6px 0px;
        text-align: justify;"/><br><br><br><br>
<p>${Calendar.getInstance().getTime().format('MMM d, yyyy')}</p>
<p>Welcome aboard from the XXXXXX department!  We are delighted to have you at XXXXXXX, and we hope you’ve had a smooth onboarding process. <br>Before proceeding with the day-to-day operations of your role, we want to share with you some useful information.</p>
<h4 style="color:Blue;">How do I request IT assistance?</h4>
  <li>Visit “myIT” portal at <a href="https://myit.domain.com">https://myit.domain.com</a></li>
  <li>Call the IT Service Desk (Ext. 55555) </li>
  <li>Chat with “Miva” your IT support assistant in your Teams interface – looking for Miva hyperlink</li>
  <li>If you are outside a company office, use this link for a country-specific directory of local Service Desk phone numbers </li>
<h4 style="color:Blue;">Password Issues… What should I do?</h4>
<p>For password resets, please ask your manager to call the Service Desk @55555 and a new password will be provided to your manager. Your manager will then hand<br> over your new password to you.</p>
<h4 style="color:Blue;">What is MFA? How is it setup?</h4>
<p>XXXXX works on Multi-Factor Authentication methodology as an authentication method for users to logon to the network. Microsoft Authenticator is the prescribed<br> tool. Please reach out to the Service Desk @ 55555 or your Local IT for any help/support in this regard.</p>
<h4 style="color:Blue;">What are XXXXXXXXX communications tools?</h4>
<p>Microsoft Teams <a href="https://Domain/sites/LearnMicrosoft365/SitePages/Get-started-with-Microsoft-Teams.aspx">(a guide to use Teams)</a> is used for instant messaging, voice and video calling, and screen sharing. Teams is also the tool to be used for all internal<br> and external meetings. Cisco Jabber may be used for calls <a href="https://Domain.com/sites/IT/Shared%20Documents/Jabber/XXXXXX%20Jabber%20Instructions.pdf?csf=1&e=t4Z...">(a guide to use Jabber) </a>to communicate with 3rd parties as well as internally. </p>
<h4 style="color:Blue;">How can I connect to work from home?</h4>
<p>Many applications are available in the cloud; however, many non-cloud applications will require a VPN connection to run from home. You may request VPN access<br>via <a href="https://Domain/servicedesk?id=sc_cat_item&sys_id=6db9c7ba1b97a1103f8c10242a4bcb0d">VPN Access Request.</a> 
If you still have any questions or concerns, please click <a href="https://Domain/sites/IT/SitePages/IT-Reference.aspx?web=1&OR=Teams-HL&CT=1645441989482&sourceId=&par...">here</a> for additional resources.  
<h4 style="color:Blue;">A message from XXXXXXXXXXX`- Global Vice President and CIO </h4>
<p>“You are the first line of defense for our company, and we need your help to keep XXXXXXXX secure. We rely on each of our employees, contractors, and partners to keep<br> our company assets safe, practice good cyber hygiene with passwords, and to recognize phishing attempts. It is more important than ever for you to be up to date with<br> cybersecurity knowledge.<br> <b style="color:Blue;">Cybersecurity is Everyone's Responsibility.</b>”</p>
<h4 style="color:Blue;">Cyber Security practices to follow:</h4>
  <li ><b style="color:Blue;">Do Not</b> write down your passwords or share them over phone or via an unencrypted mail.</li>
  <li ><b style="color:Blue;">Do Not</b> share sensitive / confidential information without applying a classification on the email. </li>
  <li ><b style="color:Blue;">Do Not</b> reply or try to unsubscribe to any junk or phishing mails. Use the “Report Message“ feature at top right-hand corner of Outlook -> select<br> “Phishing” to report the mail to Cybersecurity.</li>
  <li ><b style="color:Blue;">Do Not</b> open attachments or click on links from people that you are not expecting. If you think you may have already done so, then please call Service Desk immediately. </li>
  <li >USB access is read only by default. USB write access requires an approved request via MyIT Porta</li>
  <li class="tick">You will receive regular notifications for patch updates to browsers and cell phones. <b style="color:Blue;">Complete these requests in a timely manner</b> to maintain a secure environment.</li>
  <li ><b style="color:Blue;">Do Not</b> leave your system unattended and always lock your system while you are away from your desk.</li>
  <p>Interested in learning more about Cybersecurity best practices and tips?  Visit our <a href="https://Domain/sites/IT/SitePages/SecurityAwareness.aspx">Cybersecurity Awareness</a> page. </p>
<p>Thank you for doing your part to keep XXXXXXX safe and again, welcome to the XXXXXX team</p>
  <p>Information Technology Team</p>

[This message has been edited by moderator to mask sensitive information]


Saviynt Employee
Saviynt Employee

Hi @soumikmdr1122 ,


Can you point out which empty space are you mentioning by pointing it in the screenshot.

From your screenshot, it looks like there is no issue with any spacing.



Hi @pruthvi_t ,

I am talking about the space which I have shown below



I want to get a mail body as shown below:



Thanks and regards,

Hi @soumikmdr1122 ,

Try adding the following style to your email template to remove any extra padding or margin:

* {
margin: 0;
padding: 0;

Saviynt Employee
Saviynt Employee

@soumikmdr1122 ,

You can change the width in the <style> tag in the <head> and padding (if needed) accordingly to align the space and content in it.

div {
width: 850px;