Background images not displaying.

Discussion in 'ASP .Net' started by ecuisinetest@gmail.com, Feb 8, 2008.

  1. Guest

    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>
    , Feb 8, 2008
    #1
    1. Advertising

  2. 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.nathansokalski.com/

    <> wrote in message
    news:...
    >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>
    Nathan Sokalski, Feb 9, 2008
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Nik Coughin
    Replies:
    9
    Views:
    610
    Nik Coughlin
    Nov 30, 2004
  2. Ted Ngo
    Replies:
    1
    Views:
    328
    Felix Piskunov
    Nov 6, 2006
  3. Norman
    Replies:
    8
    Views:
    541
    Neredbojias
    Oct 13, 2007
  4. Adrienne Boswell
    Replies:
    1
    Views:
    507
    dorayme
    Aug 4, 2009
  5. Travis Newbury
    Replies:
    0
    Views:
    437
    Travis Newbury
    Aug 4, 2009
Loading...

Share This Page