Table width is not updating

SBBmaster09

Registered User.
Local time
Tomorrow, 05:57
Joined
Apr 26, 2013
Messages
92
I have this code for an email template, I am wondering why the width for the 2nd table is not working, but for the first table it does, is there something wrong in my code:

Code:
    strEMailMsg = "<Font face = Calibri>" & "Hi," & "<BR>" _
         & "<BR>" & "This serves as notification that the following employee will be rolling off the account:" & "<BR><BR>" _
         & "<html> <head> <style>   table {border-collapse: collapse;} table, th, td {border: 1px solid black;} </style> </head> <body>" _
         & "<table><Font face = Calibri><center><tr><td width=30% bgcolor=#FF0000><font color = #FFFFFF><B>" & "Name" & "</font></B></td><td width=70%>" & strRName & "</td></tr>" _
         & "<tr><td bgcolor=#FF0000><B><font color = #FFFFFF>" & "Oracle ID" & "</font></B></td><td>" & strRNetID & "</td></tr>" _
         & "<tr><td bgcolor=#FF0000><B><font color = #FFFFFF>" & "VM Email Address" & "</font></B></td><td>" & strREmail & "</td></tr>" _
         & "<tr><td bgcolor=#FF0000><B><font color = #FFFFFF>" & "Roll Off Date" & "</font></B></td><td>" & strRDate & "</td></tr></font></center></table>" _
         & "<BR>" & "May we request that you help us with the deactivation of the following IDs effective immediately:" & "<BR><BR>" _
         & "<table><Font face = Calibri color = #FFFFFF><center><B><tr bgcolor=#FF0000><td width=100%>" & "Tool/System" & "</td><td width=100%>" & "UserName" & "</td></tr></B></font>"
 
I've attached a Screen Shot of what I'm getting from your string. Is that what you are getting? What do you want to see. I notice that both cells of the second table are set to 100% width. Could that be your problem?
 

Attachments

  • Screen Shot.jpg
    Screen Shot.jpg
    78.9 KB · Views: 96
Hi, i am getting this (See attached file).

I want the length to be atleast 2-3 inches in the email. I dont know whats wrong.
 

Attachments

  • Screenshot email.PNG
    Screenshot email.PNG
    12.4 KB · Views: 95
I don't know if that has any importance, but I would put the "[FONT=&quot]bgcolor=#FF0000" in the <td> tag[/FONT] like you've in all the others.
[FONT=&quot]<tr bgcolor=#FF0000>[/FONT]
 
Already solved! :)

Code:
     strEMailMsg = "<Font face = Calibri>" & "Hi," & "<BR>" _
         & "<BR>" & "This serves as notification that the following employee will be rolling off the account:" & "<BR><BR>" _
         & "<html> <head> <style>   table {border-collapse: collapse;} table, th, td {border: 1px solid black;} </style> </head> <body>" _
         & "<table><Font face = Calibri><center><tr><td bgcolor=#FF0000 width=200><font color = #FFFFFF><B>" & "Name" & "</font></B></td><td width=400>" & strRName & "</td></tr>" _
         & "<tr><td bgcolor=#FF0000><B><font color = #FFFFFF>" & "Oracle ID" & "</font></B></td><td>" & strRNetID & "</td></tr>" _
         & "<tr><td bgcolor=#FF0000><B><font color = #FFFFFF>" & "VM Email Address" & "</font></B></td><td>" & strREmail & "</td></tr>" _
         & "<tr><td bgcolor=#FF0000><B><font color = #FFFFFF>" & "Roll Off Date" & "</font></B></td><td>" & strRDate & "</td></tr></font></center></table>" _
         & "<BR>" & "May we request that you help us with the deactivation of the following IDs effective immediately:" & "<BR><BR>" _
         & "<table><Font face = Calibri color = #FFFFFF><center><B><tr bgcolor=#FF0000><td width=300>" & "Name" & "</td><td width=300>" & "Username" & "</td></tr></font></B>" _
 

Users who are viewing this thread

Back
Top Bottom