Welcome to WebmasterWorld Guest from 54.160.198.60

Forum Moderators: incrediBILL

Message Too Old, No Replies

html email - should images need an absolute URL?

     
10:40 am on Jun 1, 2004 (gmt 0)

New User

10+ Year Member

joined:June 1, 2004
posts:15
votes: 0


I am using ASP to send a newsletter and it is formatted as html but I have query over image displaying between an image and a background image.

Why can i give an image a relative link and it appears in Outlook fine but if I use a relative link for a background image it doesn't appear? I have to use a site link http://www.example.com/images etc..

Is this really necessary or is there a way around this?

Asside from that the CSS style sheets formatted html email etc everything displays fine.

[edited by: tedster at 11:32 am (utc) on June 1, 2004]
[edit reason] de-link the url [/edit]

1:15 pm on June 1, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member kaled is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 2, 2003
posts:3710
votes: 0


Never tried it, but you might be able to use the HTML <BASE> tag to specify a notional page address from which all relative addresses are calculated.

Look at the source of a google-cached page to see how it works.

Kaled.

2:31 pm on June 1, 2004 (gmt 0)

New User

10+ Year Member

joined:June 1, 2004
posts:15
votes: 0


Thanks Kaled,

that worked just fine. Still not sure why background images would be treated differently, so if anyone has an answer would like to hear it!

cheers

4:49 pm on June 1, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:June 9, 2003
posts:1908
votes: 0


The <base> tag seems to be ignored in many webmail environments. Thus, using it so you can use relative URL's in your e-mails is not a very good solution. Best thing to do with e-mail is to use all absolute URL's for everything, from CSS background images to links.
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members