Contact Us Forum Rules Search Archive
WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-12-2006, 08:27 AM
pagetta's Avatar
WebProWorld Veteran
 

Join Date: Nov 2004
Location: UK
Posts: 505
pagetta RepRank 2
Default why won't the mailer pick up the css?

we sent out an email flyer today and have been having major problems with the css. Some people are receiving the mail and it is not picking up the external style sheet at all and so looks naff naff naff!

Other people are receiving it with all the sty;es fine, but one major image is not appearing. The difference between this image and the others that ARE appearing is
1. Its a jpeg not a gif
2. It is put in using <td style="background-image:image.jpg;"> as opposed to <img src="....>

could anyone suggest why we might be having these issues? Thank you!
Reply With Quote
  #2 (permalink)  
Old 01-12-2006, 09:21 AM
WebProWorld MVP
WebProWorld MVP
 

Join Date: Jul 2003
Location: KCMO
Posts: 1,110
Chris RepRank 4Chris RepRank 4Chris RepRank 4
Default

we've had that problem here. gmail is notorious for stripping out external CSS files. to combat this, we've started using inline styles, and this seems to have made the difference.

perhaps this approach may help you. altho, you do have to go back and declare each section you want a style attached to, which can be tedious...
__________________
Former WebProWorld Admin
Reply With Quote
  #3 (permalink)  
Old 01-12-2006, 02:28 PM
WebProWorld Member
 

Join Date: Oct 2005
Location: Chicago, IL
Posts: 27
fivetone RepRank 0
Default

We use inline styles
__________________
FiveTone
Punk Rock and Tattoo Inspired Clothing
Reply With Quote
  #4 (permalink)  
Old 01-12-2006, 07:12 PM
Weedy Lady's Avatar
WebProWorld Veteran
 

Join Date: Nov 2003
Location: mid south USA
Posts: 385
Weedy Lady RepRank 0
Default old fashioned way

I send mine the old fashioned way with straight html. The only problems I have are that some hotmail people don't see anything unless they click on "reply", and most webtv people see it but a few don't.

Sometimes I put these people on the plain text only list and sometimes I suggest they get a yahoo mail account. Yahoo shows everything. So far.

I don't think there is a really perfect way to send an e mail formatted brochure or ezine.

I use "some" css on the rest of the pages of my web site. (As much as I'm capable of doing).

I tried sending everyone a plain text only e mail a couple of times with a link to the web page with the full version but very few people clicked on the link, so I'm back to the fully formatted version which has much better results.
__________________
The Weedy Lady at
http://www.happydaycards.com
Free E Cards for holidays and all occasions, fun pages and great recipes.
Reply With Quote
  #5 (permalink)  
Old 01-13-2006, 04:20 AM
WebProWorld New Member
 

Join Date: Jan 2006
Posts: 1
chantra RepRank 0
Default

i use inline css as many email client or web based email service do not load external css.

I'm looking for a way to include the image directly into the mail as most of the time, image are not loaded by email clients.
Reply With Quote
  #6 (permalink)  
Old 01-13-2006, 06:03 AM
WebProWorld New Member
 

Join Date: Jan 2006
Posts: 1
davidlenehan RepRank 0
Default Inline Styles

Unfortunately it would seem that there is no guaranteed way to get styles to display is all email clients. It is always better to use inline styles and this seems to work in most case. We try to use old fasioned <font> tags wherever we can.

If you are going to include a background image in a cell, it is better to use <td background="blahbblah.jpg">, but some mail readers will block out a background image no matter what, so if you really want a certain image to display, you need to find a way to place it on the page normally, without using it as a background image. You just have to keep trying different methods until you find a format that appears readable and consistent in the majority of browsers.

Remember, for best results, keep your HTML as simple as possible, and you will have better results.

Regards,
David Lenehan.
http://www.infacta.com
Reply With Quote
  #7 (permalink)  
Old 01-13-2006, 09:08 AM
WebProWorld New Member
 

Join Date: Nov 2005
Posts: 5
TripleAught RepRank 0
Default Re: why won't the mailer pick up the css?

Quote:
Originally Posted by pagetta
Other people are receiving it with all the sty;es fine, but one major image is not appearing. The difference between this image and the others that ARE appearing is
1. Its a jpeg not a gif
2. It is put in using <td style="background-image:image.jpg;"> as opposed to <img src="....>
When doing HTML mailings it's best to use an absolute link to your images.
Reply With Quote
  #8 (permalink)  
Old 01-13-2006, 09:10 AM
WebProWorld New Member
 

Join Date: Jan 2006
Posts: 7
LTY83 RepRank 0
Default

You might have already tried this but...

You might want to try using the full image path such as http://yourwebsite.com/images/imagename.gif instead of just the image name

if its in the email the code won't be able to find an image if its not reading the full path
Reply With Quote
  #9 (permalink)  
Old 01-13-2006, 11:11 AM
WebProWorld New Member
 

Join Date: Jan 2006
Location: New Jersey
Posts: 1
eacevedo RepRank 0
Default re: Why Won't the Mailer Pick Up the CSS?

Mark Wyner explains how to create compliant CSS formatted emails in his article “CSS and Email, Kissing in a Tree“. This is a great read and should answer most of your questions.
__________________
Eric Acevedo
http://www.visualmediaonline.com
News, tips, and babble on things relating to website design, online services, web standards, CSS Design, website marketing and more.
Reply With Quote
  #10 (permalink)  
Old 01-13-2006, 11:22 AM
pagetta's Avatar
WebProWorld Veteran
 

Join Date: Nov 2004
Location: UK
Posts: 505
pagetta RepRank 2
Default

cheers for the tips - that article was v useful thanks eacevedo - I would recommend reading that to anyone who sends out HTML emails!

I did have the full image path for the background image - it was only in hotmail that it was stripping it out and apparently hotmail seems to have a mind of its own when it comes to reading css - majority of our targets wouldn't be using hotmail anyhow so not a massive issue.
Reply With Quote
  #11 (permalink)  
Old 01-13-2006, 11:26 AM
Weedy Lady's Avatar
WebProWorld Veteran
 

Join Date: Nov 2003
Location: mid south USA
Posts: 385
Weedy Lady RepRank 0
Default Thanks, eacevedo

Thanks for that link. I have added the "one <div>" tag to my own e mail newsletter and maybe.......just maybe......that will help with the hotmail people who can't read anything.

As mentioned before, I do my newsletter in straight html, no css at all....but still was having problems.

One of the great things about these forums is that when one person posts a problem a lot of the rest of us get assistance also!
__________________
The Weedy Lady at
http://www.happydaycards.com
Free E Cards for holidays and all occasions, fun pages and great recipes.
Reply With Quote
  #12 (permalink)  
Old 01-13-2006, 02:34 PM
WebProWorld New Member
 

Join Date: May 2005
Location: California
Posts: 7
4imc.com RepRank 0
Default RE: why won't the mailer pick up the css?

Another avenue to alleviate this issue altogether, which we do on most HTML campaigns it to host the Newsletter, HTML campaign in a file on your server. This will mainating CSS as it cannot be stripped, stop image stripping from Outlook or other programs. An added benefit of this it will allow you to review on your server activity, an "Open Rate" to the newsletter or campaign by the acknowledgement of hits to the page, if you have links in the newsletter or HTML message you will also be able to track conversion from the message to the landing page as the action from one to another will create a refer hit.

Good Luck
__________________
eMarketPros.com
Bulk eMail Pgms
Newsletter & eMail Mktg
Web Analytics
Reply With Quote
  #13 (permalink)  
Old 01-13-2006, 02:35 PM
WebProWorld New Member
 

Join Date: May 2005
Location: California
Posts: 7
4imc.com RepRank 0
Default RE: why won't the mailer pick up the css?

Another avenue to alleviate this issue altogether, which we do on most HTML campaigns it to host the Newsletter, HTML campaign in a file on your server. This will mainating CSS as it cannot be stripped, stop image stripping from Outlook or other programs. An added benefit of this it will allow you to review on your server activity, an "Open Rate" to the newsletter or campaign by the acknowledgement of hits to the page, if you have links in the newsletter or HTML message you will also be able to track conversion from the message to the landing page as the action from one to another will create a refer hit.

Good Luck
__________________
eMarketPros.com
Bulk eMail Pgms
Newsletter & eMail Mktg
Web Analytics
Reply With Quote
  #14 (permalink)  
Old 01-14-2006, 04:29 AM
WebProWorld New Member
 

Join Date: Jan 2006
Posts: 1
madwizard RepRank 0
Default Re: why won't the mailer pick up the css?

Do not use:

<td style="background-image:image.jpg;"> as opposed to <img src="....>

but use this instead:

<td width="200px" height="200px" background="some_image.jpg">

It works fine for me. Remember if you have no text or nothing inside your <td></td> tags you need to specify width and height or else you want see the background image at all.
Reply With Quote
  #15 (permalink)  
Old 02-08-2006, 02:38 PM
WebProWorld New Member
 

Join Date: Nov 2005
Posts: 20
Steelchord RepRank 0
Default styles in tables

styles + tables = buggy.
styles + tables + email clients = nightmare.

out of inline styles vs. straight html vs. external css hosting, hosting the css file is definitely the way to go. But use the box model.

Don Forrester
Bits LTD.;
Accela LLC.
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Tags: , , ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.2.0