HighDots Forums  

Using absolute image addresses for background images w/ CSS???

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Using absolute image addresses for background images w/ CSS??? in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Steve Grosz
 
Posts: n/a

Default Using absolute image addresses for background images w/ CSS??? - 08-01-2005 , 11:19 AM






I'm sending out a monthly e-newsletter. In one of my <div> tags I'd
like to specify a background picture.

In my css, it defines the path as url('image.jpg');

But I have found from experience that I need to use a absolute path to
the web servers folder/image.

How can I change the above path to a http://www.server.com/image.jpg ??

Thanks,
Steve

Reply With Quote
  #2  
Old   
P@tty Ayers
 
Posts: n/a

Default Re: Using absolute image addresses for background images w/ CSS??? - 08-01-2005 , 11:30 AM







"Steve Grosz" <boise_bound (AT) hotmail (DOT) com> wrote

Quote:
I'm sending out a monthly e-newsletter. In one of my <div> tags I'd like
to specify a background picture.

In my css, it defines the path as url('image.jpg');

But I have found from experience that I need to use a absolute path to the
web servers folder/image.

How can I change the above path to a http://www.server.com/image.jpg ??
Upload the image to your server, and then reference the correct path to it
by typing it into the code. The path above shows "image.jpg" to be residing
in the root directory at www.server.com. If you put the image in a
directory called "images", which is in a directory called "email", which is
in the root, the path would be:

http://www.server.com/email/images/image.jpg

Did I miss something - isn't it that simple?


--
Patty Ayers | www.WebDevBiz.com
Free Articles on the Business of Web Development
Web Design Contract, Estimate Request Form, Estimate Worksheet
--




Reply With Quote
  #3  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: Using absolute image addresses for background images w/ CSS??? - 08-01-2005 , 11:30 AM



url(http://www.server.com/image.jpg);


--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"Steve Grosz" <boise_bound (AT) hotmail (DOT) com> wrote

Quote:
I'm sending out a monthly e-newsletter. In one of my <div> tags I'd like
to specify a background picture.

In my css, it defines the path as url('image.jpg');

But I have found from experience that I need to use a absolute path to the
web servers folder/image.

How can I change the above path to a http://www.server.com/image.jpg ??

Thanks,
Steve



Reply With Quote
  #4  
Old   
Steve Grosz
 
Posts: n/a

Default Re: Using absolute image addresses for background images w/ CSS??? - 08-01-2005 , 11:49 AM



Yea, I tried that, didn't seem to work.....

Murray *TMM* wrote:

Reply With Quote
  #5  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: Using absolute image addresses for background images w/ CSS??? - 08-01-2005 , 12:01 PM



Then you tried incorrectly. Send me the email at forums at mydomain
(mydomain is great-web-sights.com).

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"Steve Grosz" <boise_bound (AT) hotmail (DOT) com> wrote

Quote:
Yea, I tried that, didn't seem to work.....

Murray *TMM* wrote:
url(http://www.server.com/image.jpg);



Reply With Quote
  #6  
Old   
Steve Grosz
 
Posts: n/a

Default Re: Using absolute image addresses for background images w/ CSS??? - 08-01-2005 , 01:05 PM



Ok, I sent you a copy of the newsletter.

Murray *TMM* wrote:
Quote:
Then you tried incorrectly. Send me the email at forums at mydomain
(mydomain is great-web-sights.com).


Reply With Quote
  #7  
Old   
Mad Dog
 
Posts: n/a

Default Re: Using absolute image addresses for background images w/ CSS??? - 08-01-2005 , 01:12 PM



What email program are you checking in? There's not great consistency in how
they will interpret HTML in emails, especially when it comes to CSS.

MD

Steve Grosz wrote:
Quote:
Yea, I tried that, didn't seem to work.....

Murray *TMM* wrote:
url(http://www.server.com/image.jpg);



Reply With Quote
  #8  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: Using absolute image addresses for background images w/ CSS??? - 08-01-2005 , 01:15 PM



And I sent you the answer.

The solution is -

1. Remove the quotes around the image's url in the background-image style,
and
2. Move the stylesheet within the body, i.e., just underneath the <body>
tag

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"Steve Grosz" <boise_bound (AT) hotmail (DOT) com> wrote

Quote:
Ok, I sent you a copy of the newsletter.

Murray *TMM* wrote:
Then you tried incorrectly. Send me the email at forums at mydomain
(mydomain is great-web-sights.com).




Reply With Quote
  #9  
Old   
Steve Grosz
 
Posts: n/a

Default Re: Using absolute image addresses for background images w/ CSS??? - 08-01-2005 , 02:47 PM



I'm using Thunderbird right now....

Mad Dog wrote:
Quote:
What email program are you checking in? There's not great consistency in how
they will interpret HTML in emails, especially when it comes to CSS.

MD

Steve Grosz wrote:

Yea, I tried that, didn't seem to work.....

Murray *TMM* wrote:

url(http://www.server.com/image.jpg);




Reply With Quote
  #10  
Old   
Steve Grosz
 
Posts: n/a

Default Re: Using absolute image addresses for background images w/ CSS??? - 08-01-2005 , 02:47 PM



Thanks for the help

Murray *TMM* wrote:
Quote:
And I sent you the answer.

The solution is -

1. Remove the quotes around the image's url in the background-image style,
and
2. Move the stylesheet within the body, i.e., just underneath the <body
tag


Reply With Quote
Reply




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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.