[thelist] Question of directory (OT)

Andrew Maynes andrew at uk-webdeveloper.co.uk
Mon Apr 22 04:24:00 CDT 2002


talking of css, does anyone have a template for a header that has room for a
adverting banner and a navigation?

andrew

-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org]On Behalf Of Lachlan Cannon
Sent: Monday, April 22, 2002 10:14
To: thelist at lists.evolt.org
Subject: Re: [thelist] Question of directory


\Daniel Medley\ said:
If you want to link bla.html to whatever.css,
> would you have it as such, <link rel=\"stylesheet\"
> href=\"../whatever.css\" type=\"text/css\" />? This works but it seems
> a bit cumbersom. Especially if I happen to have another
> sub-directory within my bla directory and wanted to link it to
> whatever.css. Would I then use, ../../whatever.css in my link tag, or
> is there another way to approach this that I\'m not aware of?

Just use a root relative address, that is href="/whatever.css". The web
browser automatically appends anything after a straight slash with nothing
before it onto the end of the domain. So a link to "/" is to the root, and
anything after the slash is relative to the root. So if you had your style
in a directory called /style/, you could then refer to it throughout your
site as "/style/whatever.css"

By the way, I do recommend making a seperate directory for styles and
images. It keeps your directories more ordered and neat, just like the
directories for html files do.

Lach


--
For unsubscribe and other options, including
the Tip Harvester and archive of thelist go to:
http://lists.evolt.org Workers of the Web, evolt !
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.350 / Virus Database: 196 - Release Date: 4/17/02

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.350 / Virus Database: 196 - Release Date: 4/17/02





More information about the thelist mailing list