RE: URL difficulty, Netscape 4.75
by "Sauyet, Scott (OTS-HAR)" <Scott_Sauyet(at)output.net>
|
| Date: |
Tue, 4 Jun 2002 09:08:56 -0500 |
| To: |
"'Tenley Shewmake'" <ts(at)awebresource.com>, HWG Style <hwg-style(at)hwg.org> |
| |
todo: View
Thread,
Original
|
|
> And it works great for all files in the same directory as the
> stylesheet, which I'm calling in the head - [ ... ]
The url in the stylesheet is relative to the HTML page and not
the CSS file. I've found it easiest to use an absolute URL in
these circumstance -- not one pointing to the server, with an
"http://", but one which starts with a "/".
I generally keep any image which I might want to point to from
inside a stylesheet in an "images" directory right off my root
directory. Then I can simply use "url('/images/mypic.png')"
for any stylesheet in any document on my system.
> I suppose I can use the absolute url, but then I have
> to change the stylesheet when viewing on my local machine :-(
If you are viewing just through the file system, then it is a
problem. I've found that setting up a test server on my machine
was easy enough. Then I can do the bulk of my testing through
"http://localhost/...".
Good luck,
-- Scott
HWG hwg-style mailing list archives,
maintained by Webmasters @ IWA
This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.