Reply
Background image in DW template doesnt show
Old 06-08-2008, 05:16 AM Background image in DW template doesnt show
Junior Talker

Posts: 2
Name: nj
Hi there,

I have set up a template in DW CS3 and the background is a jpeg image file from PS. When I create a new page from the template the background image doesn't show up, everything else does. Its just a white background. I'm thinking its some file path problem but I've played around with that and can't seem to figure out where I've gone wrong.

Appreciate any suggestions.
nanthinee is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 06-08-2008, 05:40 AM Re: Background image in DW template doesnt show
chrishirst's Avatar
Super Moderator

Posts: 13,576
Location: Blackpool. UK
Line 63 has a syntax error.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 06-08-2008, 05:41 AM Re: Background image in DW template doesnt show
minsky's Avatar
Skilled Talker

Posts: 49
Name: Minsky
Location: UK
This could be because your DW template is stored in a different directory to your HTML files and the path from the root is incorrect.

Try this:

If your image path is (for example): "images/background.jpg"
change it to: "../images/background.jpg" or even "../../images/background.jpg"
__________________
Never argue with a fool. They will drag you down to their level and then beat you with experience.
minsky is offline
Reply With Quote
View Public Profile
 
Old 06-09-2008, 12:57 AM Re: Background image in DW template doesnt show
Junior Talker

Posts: 2
Name: nj
Hi Minsky,

You were right abt the path. However, when I move the template into the public folder, where all my other pages are, the template looses its images, but the other webpages get the right background. When I move the other page into the template folder with the template, they loose their images. So I'm in a dilemma. And the links I put in the template don't work in the webpages, I guess that has to do with the same problem.

n
nanthinee is offline
Reply With Quote
View Public Profile
 
Old 06-09-2008, 04:36 AM Re: Background image in DW template doesnt show
Average Talker

Posts: 27
Name: Jhon
How far your site is opening properly stay there and after that start make new pages from there with right path.
WM.netbuild is offline
Reply With Quote
View Public Profile
 
Old 06-09-2008, 05:11 AM Re: Background image in DW template doesnt show
minsky's Avatar
Skilled Talker

Posts: 49
Name: Minsky
Location: UK
Quote:
Originally Posted by nanthinee View Post
Hi Minsky,

You were right abt the path. However, when I move the template into the public folder, where all my other pages are, the template looses its images, but the other webpages get the right background.
No, you shouldn't move the template. If you are using the built in Dreamweaver template option, it automatically puts the template in a /Templates directory and expects to find it there. Nor should you put the HTML files into the /Templates directory.

Sometimes, depending on how you arrange your directories, the images may not show up when viewing the template itself (the template is not part of the site once loaded up to the web). As long as they show up in the HTML documents it's ok.
__________________
Never argue with a fool. They will drag you down to their level and then beat you with experience.
minsky is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Background image in DW template doesnt show
 

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

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




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.12664 seconds with 12 queries