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!

Making HTML Outlook Stationary....need help aligning images.

Status
Not open for further replies.

RZillmer

Programmer
Nov 20, 2001
42
US
The html is simple enough....a background image, two images in either of the top corners, and then a line. My only problem is I want the images in the corners with NO MARGIN. I have added topmargin=0 and leftmargin=0 to my <body> tag. That seems to get rid of the left margin, but I still get a top margin. When I view the source on my new message, I see that a <div>&nbsp;</div> has been added to my html file when it is rendered. Why is this? Is there any way to get it to not do that?

I can delete it easily enough to eliminate the top margin, but this is for a client and I want it to be perfect. Also, if it's added when rendered I'm afraid it would just be re-added when the recipient views the e-mail. Thanks in advance for any help.
 
You wrote &quot;...I see that a <div> </div> has been added to my html file when it is rendered&quot;. Who did add this div tag ??? Water is not bad as long as it stays out human body ;-)
 
hahaha....I meant to say it's adding <div>& nbsp ;</div> to my stationary...without the spaces, of course.

And no one is adding it. For some reason when the .htm file is rendered it is added.

Here is the stationary in it's entirety:

<HTML>
<HEAD>
<META HTTP-EQUIV=&quot;Content-Type&quot; CONTENT=&quot;text/html; charset=windows-1252&quot;>
<META NAME=&quot;Generator&quot; CONTENT=&quot;Microsoft Word 97&quot;>
<META NAME=&quot;Template&quot; CONTENT=&quot;C:\Program Files\Microsoft Office\Office\html.dot&quot;>
<STYLE></STYLE></HEAD>
<BODY topmargin=0 leftmargin=0 rightmargin=0 LINK=&quot;#0000ff&quot; VLINK=&quot;#800080&quot; BACKGROUND=&quot;Citrus Punch Bkgrd.gif&quot;>
<IMG SRC=&quot;FlyingPicnicTableAddressBIG.jpg&quot; valign=top ALIGN=left><IMG SRC=&quot;FlyingPicnicTableLogoSMALL.jpg&quot; valign=top ALIGN=right>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR><HR ALIGN=&quot;LEFT&quot; color=red><blockquote>
</BODY>
</HTML>
 
Try to remove the two last meta tags and to add the following style between the <style> tags :
Code:
BODY {
        margin : 0px;
        border-width : 0px;
        padding : 0px;
        margin-left: 0px;
        margin-top: 0px;
}

Water is not bad as long as it stays out human body ;-)
 
Thanks, but no dice. I just don't get it. Here is my .htm file now:

<HTML>
<HEAD>
<META HTTP-EQUIV=&quot;Content-Type&quot; CONTENT=&quot;text/html; charset=windows-1252&quot;>
<STYLE>
BODY
{
margin: 0px;
border-width: 0px;
padding: 0px;
margin-left: 0px;
margin-top: 0px;
}
</STYLE></HEAD>
<BODY LINK=&quot;#0000ff&quot; VLINK=&quot;#800080&quot; BACKGROUND=&quot;Citrus Punch Bkgrd.gif&quot;>
<IMG SRC=&quot;FlyingPicnicTableAddressBIG.jpg&quot; valign=top ALIGN=left><IMG SRC=&quot;FlyingPicnicTableLogoSMALL.jpg&quot; valign=top ALIGN=right>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR><HR ALIGN=&quot;LEFT&quot; color=red><blockquote>
</BODY>
</HTML>

When I select it as stationary for a new message and view the source, this is what I get:

<!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;>
<HTML><HEAD><BASE
href=&quot;file://C:\Program Files\Common Files\Microsoft Shared\Stationery\&quot;>
<META http-equiv=Content-Type content=&quot;text/html; charset=windows-1252&quot;>
<STYLE>
BODY
{
margin: 0px;
border-width: 0px;
padding: 0px;
margin-left: 0px;
margin-top: 0px;
}
</STYLE>

<META content=&quot;MSHTML 6.00.2719.2200&quot; name=GENERATOR></HEAD>
<BODY vLink=#800080 link=#0000ff bgColor=#ffffff
background=&quot;Citrus Punch Bkgrd.gif&quot;>
<DIV>& nbsp ;</DIV><IMG src=&quot;FlyingPicnicTableAddressBIG.jpg&quot; align=left
valign=&quot;top&quot;><IMG src=&quot;FlyingPicnicTableLogoSMALL.jpg&quot; align=right valign=&quot;top&quot;>
<BR><BR><BR><BR><BR><BR><BR><BR><BR>
<HR align=left color=red>

<BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>

Of course...no spaces by the & and ;
 
do you have the translation in french of &quot;stationary&quot; because my outlook version is french ? Water is not bad as long as it stays out human body ;-)
 
No, I don't...but the arrow in this picture is what brings up the stationary options in my version. I'm guessing it's the same in the french version.

stationary.JPG
 
Hi,

I've noticed this problem also.

(By the way, for the person who was asking about a French translation, I don't have it, but in this case the correct spelling is &quot;stationery&quot; instead of &quot;stationary&quot; which is a proper spelling, but for a different word with a different meaning.)

I think the only way to get an image up to the very top might be to use it as a background image for the page.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top