Click here to get back home

Help! Background image not displaying...

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Help! Background image not displaying... ecuisinetest 02-08-2008
Posted by ecuisinetest on February 8, 2008, 6:11 pm
Please log in for more thread options
have some HTML that is being sent via email. It displays fine in
yahoo mail but not in gmail or hotmail. Can anybody shed some light.

Here is a link to the page

http://www.alliedtechnical.net/test.html

and the source

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/
TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Test Page for Background Image Problem</title>
</head>
<body>
<div>
Just the image as an img tag...<br />
<img src='http://www.ecuisine.net/templates/6_footer.jpg'
alt="" />

<br />A table with a backgound-image on the table tag...<br />

<table width="600" style="height:324px;background-
image:url('http://www.ecuisine.net/templates/
6_footer.jpg');background-
repeat:no-repeat;">
<tr>
<td align="center" valign="middle">
Some data to fill the cell
</td>
</tr>
</table>

<br />A table with a backgound-image on the td tag...<br />
<table width="600">

<tr>
<td align="center" valign="middle" style="height:
324px;background-image:url('http://www.ecuisine.net/templates/
6_footer.jpg');background-repeat:no-repeat;">
Some data to fill the cell
</td>
</tr>
</table>
</div>
</body>
</html>

Posted by Andy Dingley on February 8, 2008, 8:37 pm
Please log in for more thread options
On 8 Feb, 23:11, ecuisinet...@gmail.com wrote:
> have some HTML that is being sent via email. It displays fine in
> yahoo mail but not in gmail or hotmail.

You have your images as absolute URLs to a web server, rather than
embedding them into your email. Many / most webmail services and even
email clients these days will block such images, as they're a feature
mostly used by spammers.

If you send spam to an email address that may or may not be live, then
you can embed an image link in it with an identifier for that address
coded into the URL. The target downloads the image, the spammer checks
their logs and they've confirmed that your address is live. Bad news
for the target!

I suggest embedding the images into the email instead. If they're huge
PDFs or similar that are just too big for this, then show them as
obvious links instead and let the users choose to click on them.

Posted by Steve Swift on February 9, 2008, 2:11 am
Please log in for more thread options
ecuisinetest@gmail.com wrote:
> have some HTML that is being sent via email. It displays fine in
> yahoo mail but not in gmail or hotmail. Can anybody shed some light.

Gmail explicitly ignores background images, since it has no way of
knowing if the image would render the text illegible. Gmail also ignores
background colour specification, at least on the BODY.

I would imagine that Hotmail does the same.

--
Steve Swift
http://www.swiftys.org.uk/swifty.html
http://www.ringers.org.uk

Similar ThreadsPosted
Mac IE not displaying background-image June 20, 2006, 6:39 am
with background image - what's the right way? March 4, 2005, 5:51 pm
Image Not Displaying for Some Firefox Users May 31, 2007, 11:21 pm
CSS Bug?? background-image - Not Refreshing October 25, 2005, 10:39 am
Background image not appearing December 29, 2005, 11:42 pm
HTML Background image January 28, 2006, 4:51 pm
fixed background image w/css problem September 27, 2004, 9:29 pm
Firefox does not recognize background image May 3, 2006, 9:20 pm
Masking large image into background February 26, 2007, 4:40 pm
Setting an image as background to a table cell. September 27, 2005, 5:54 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap