Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Background images not displaying.

Reply
Thread Tools

Background images not displaying.

 
 
ecuisinetest@gmail.com
Guest
Posts: n/a
 
      02-08-2008
I have some HTML that is being sent via email through an ASP.NET app.
It displays fine in
yahoo mail but not in gmail or hotmail. Can anybody shed some light.

Here is a link to a sample 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>
 
Reply With Quote
 
 
 
 
Nathan Sokalski
Guest
Posts: n/a
 
      02-09-2008
I am going to guess that it is the security settings for the email. There
are often stricter security settings for HTML email messages than there are
for plain text emails. Take a look at the settings in the email viewers, and
see if it works then. I use Hotmail, and I often need to click Show Content
for emails that are html emails (I believe there is an option to have it
always show it, but it's been a while since I checked). I would also like to
recommend that you not send html emails, or at least let the user specify
whether they want the email as html or plain text, because some email
viewers don't even give you the option of viewing the html of html emails.
--
Nathan Sokalski
http://www.velocityreviews.com/forums/(E-Mail Removed)
http://www.nathansokalski.com/

<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I have some HTML that is being sent via email through an ASP.NET app.
> It displays fine in
> yahoo mail but not in gmail or hotmail. Can anybody shed some light.
>
> Here is a link to a sample 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>



 
Reply With Quote
 
 
 
Reply

Thread Tools

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: background images and span element when images are turned off Adrienne Boswell HTML 1 08-04-2009 10:51 AM
Re: background images and span element when images are turned off Travis Newbury HTML 0 08-04-2009 10:27 AM
not able to click on background tab and backgrounds in properties to change the background. rex Computer Support 2 12-06-2006 02:26 AM
Background image or Images does not display with the login screen Ted Ngo ASP .Net 1 11-06-2006 08:42 PM
Not without a table: 3 column, equal height with background-images Nik Coughin HTML 9 11-30-2004 06:58 PM



Advertisments