Jump to content

Recommended Posts

Posted

I added the following to a style sheet I am working on:

 

img.floatLeft {

float: left;

margin: 4px;

}

img.floatRight {

float: right;

margin: 4px;

}

 

I then added e.g. <img src="image.jpg" class="floatLeft"> <p>Text...</p> to the body of the css to wrap text around an image. It worked fine and looked great in the browser. However, when I embedded the code in Outlook to send as an email as I do regularly with my CSS e-newsletters the 'floating' images formatting went awry.

 

Is this an overflow:auto issue, i.e if I add this to my stylesheet will it lock the 'floated' images in place or is it something else causing them to move and formatting get messed up when sending in the body of the email?

Posted

When coding email, you have to go back to the "old" style of coding, which unfortunately means tables and inline CSS styling. I wouldn't suggest floats, since they often don't get interpreted correctly by email clients.

 

I have a couple links which has more info about this -- let me see if I can dig them up.

Posted

Remember that Outlook 2007 is worse for html emails than Outlook 2002. The 2002 version will process background images but 2007 does not.

 

There are some tricks to learn for background images. Here are some examples. It's set up as an email reply to a form submission, for instance if someone submits their email address to request a brochure or product details but the general principles for html emails are stated:-

http://www.wickham43.net/formhtmlemail.php

  • 3 weeks later...
Guest zackie40
Posted (edited)

Is this an overflow:auto issue, i.e if I add this to my stylesheet will it lock the 'floated' images in place or is it something else causing them to move and formatting get messed up when sending in the body of the email?

 

Edited by Andrea
Link Deleted - No Spam Please

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...