Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

html email signature not rendering correctly in Outlook 2007

Status
Not open for further replies.

NIA2

Technical User
Aug 30, 2006
137
AU
Hi everyone,

I've put together an html email signature to use with Outlook 2007 as the outgoing email client. The problem is that for some reason Outlook is pushing the first line of the left hand table cell down one line so there's a blank line. This is the <td> that it's affecting:

Code:
 <td width="160" valign="top" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; line-height: 15px; text-align:left; color:#666666; padding-top:5px;">Unit 35<br />
2 Bligh Street<br />
Suburb NSW 2001 </td>

I wondered if someone could check the code to see if it's a code problem or whether it's got something to do with Outlook? All I know is that when I test in a browser it's okay.

Would really appreciate any help.


Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[URL unfurl="true"]http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">[/URL]
<html>
<head>
<title>Unititled</title>
<meta http-equiv="Content-Type" content="text/html;">
</head>
<body bgcolor="#ffffff" style="margin: 0; padding: 0;">
<!-- Start Table -->
<table width="330" height="100%" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="margin: 0;">
<tr>
<!-- Start Content -->
<td colspan="4" id="Content" align="left" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 15px;  color:#000; padding-bottom: 20px; margin: 0;"><p>Yours sincerely,</p>
  <p><span style="color: #000; font-weight:bold">Firstname Lastname </span><br />
  </p></td>
<!-- End Content -->
      </tr>
      
<tr>
  <td colspan="4" height="30" valign="middle" style="text-align:left; border-bottom: 1px solid #e5ae51; padding-bottom: 5px"><img src="logo.jpg" alt="Logo" width="160" height="30" /></td>
  </tr>
<tr>
<!-- Start Footer -->
            
 
        <td width="160" valign="top" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; line-height: 15px; text-align:left; color:#666666; padding-top:5px;">Unit 35<br />
2 Bligh Street<br />
Suburb NSW 2001 </td>
        
<td width="180" valign="top" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; line-height: 15px; text-align:left; color:#666666; padding-top:5px;"><span style="color: #000; font-weight:bold">T:</span> +61 2 9513 0000 <br />
     <span style="color: #000; font-weight:bold">F:</span> +61 2 9513 0000 <br />
     <span style="color: #000; font-weight:bold">W: </span><a href="[URL unfurl="true"]http://www.newsite.com.au"[/URL] style="text-decoration:none; color:#666666;">[URL unfurl="true"]www.newsite.com.au</a></td>[/URL]
<!-- End Footer -->
      </tr>
</table>
</body>
</html>
 
Yeah I understand that different email clients process html differently but I'm just trying to work out the quirks of Outlook 2007. I mean I created the code in Dreamweaver and haven't used Word at all this time. The .htm file has been placed in a signatures folder that Outlook can access so Word is not affecting the code this time. I just hoped someone would know a bit about how Outlook handles html and whether there was any workaround.
 
Might be worth asking in forum605 - that seems to be mainly dealing with Outlook issues

___________________________________________________________
If you want the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
Steam Engine Prints
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top