turboraketti
04-15-2008, 10:02 AM
I'm having an issue with an HTML newsletter I'm designing. Since this regards email HTML this problem goes back to old and hairy table design and deprecated attributes... If this is not the place for this kind of question, please tell me, and point in some better direction if you can.
Many of the receivers use Outlook, so I have a test suite with Outlook 2007. Regarding background images, the only possibility is to use the deprecated "background" property of the body element (it's not supported on any other element, nor is CSS background-image supported in Outlook 2007). This is ok for me, but it seems that Outlook 2007 displays JPG backgrounds too large, some 50% larger than e.g. Thunderbird. The amount of scaling seems to depend on the size of the image.
Now, if I open my background image in my image software and save it as GIF, and use that in my mail instead, it displays correctly in Outlook. See the two attached images. Also tried PNG, which seem to suffer from the same disease as JPG. I've tried linking to the image instead of embedding it in the mail -- no difference. If I, in Outlook, picks "Open Mail in Web Browser", the background displays correctly in MSIE6.0 regardless of image type, so this seems to be an Outlook issue.
Some info that shouldn't be relevant (as of my belief): All images was created with the GIMP. I use Swift Mailer (a PHP library) to create and send my mails.
I asked the omniscient Google for a solution, too, getting only riddles as answers... Someone know anything about this?
Many of the receivers use Outlook, so I have a test suite with Outlook 2007. Regarding background images, the only possibility is to use the deprecated "background" property of the body element (it's not supported on any other element, nor is CSS background-image supported in Outlook 2007). This is ok for me, but it seems that Outlook 2007 displays JPG backgrounds too large, some 50% larger than e.g. Thunderbird. The amount of scaling seems to depend on the size of the image.
Now, if I open my background image in my image software and save it as GIF, and use that in my mail instead, it displays correctly in Outlook. See the two attached images. Also tried PNG, which seem to suffer from the same disease as JPG. I've tried linking to the image instead of embedding it in the mail -- no difference. If I, in Outlook, picks "Open Mail in Web Browser", the background displays correctly in MSIE6.0 regardless of image type, so this seems to be an Outlook issue.
Some info that shouldn't be relevant (as of my belief): All images was created with the GIMP. I use Swift Mailer (a PHP library) to create and send my mails.
I asked the omniscient Google for a solution, too, getting only riddles as answers... Someone know anything about this?