Re: Simple Questions for Newbie (Background Page Image)

"Helder Magalhães" <[email protected]>
Newsgroups gmane.comp.web.amaya.general
Message-ID <[email protected]>
Aside from Dominique Meeùs's suggestion, which are most relevant and
IMO you should take into consideration, here's a small, yet general
Web development suggestion. ;-)

>  background-image: url(D:/RealEstate/XSite/TestSplash.jpg);

Always avoid full paths - use relative paths instead. If your HTML
file is in the same directory as "TestSplash.jpg", simply write:

background-image: url(TestSplash.jpg);

You can crawl through the directories to reach your file (using ".."
and/or directory names). If you really want to use full paths, at
least don't make use of file specific URL information such as "D:" -
use "/RealEstate/XSite/TestSplash.jpg" which, when you upload it to a
Web server, will turn into
"http://yourWebServer.com/RealEstate/XSite/TestSplash.jpg"

This is *not* limited to including images and such - it can and
*should* be applied to navigation (jumping between HTML files) and
other included resources (referenced CSS files, images within HTML
context, etc.).

Hope this helps,

 Helder Magalhães
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.