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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

html email template with style sheet

Status
Not open for further replies.
Aug 18, 2003
111
GB
I use this very simple html page as an email template, that displays my logo at the top of the email where it cannot be deleted. When i send emails to certain people the image is repeated across the entire email even though i have repeat set to no. Someone also told my that it happens on office 2000 but not on office xp (i don't know if this is true).

What am i doing wrong? Can it be fixed?



<html>
<head>
<style type="text/css">
<!--
body {background-image:url(logo.gif);
background-position:top left;
background-repeat:no-repeat};}
-->
</style>
<title></title></head>
<body>
</body>
</html>

Cheers
Pete

If it ain't broke, don't fix it!
 
CSS is not supported properly, fully or at all in most email clients.

If you want to send email in this way, then there is nothing you can really do about it.

It could be though that the extra "}" in the background-repeat part is causing a problem.
;)
 
To be precise, we have either extra } at the end or an extra ;} at the end. Anyway, your style should look like this:
Code:
<style type="text/css">
    <!--
        body { background-image:url(logo.gif);
            background-position:top left;
            background-repeat:no-repeat; }
    -->
</style>
If you still experience problems with this kind of code, try putting a div the size of your logo on top of the page and apply background only to that div. That should fix repeating.
 
Can anyone explain how to write the div i haven't used them that much and i am not sure what to do.

Cheers
Pete

If it ain't broke, don't fix it!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top