D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] css file in site root called from a subdirectory

 

Thanks, i will look into that, I don't know the aboslute path, on my server for www.paigntonrugby.net I am given a ist of directories and have to put things in httpdocs,

What I have seems to work fine locally, and fine when uploaded to the server (well the method being used worked for my own site),

I have just fixed my web site again as it was broken, with 6 errors, there are some on the other pages, I want to type text, the leave a gap, betwen paragraphs so I wil have

paragraph 1
   blank line
paragraph 2

I am not sure why this is not working when I am using the <p> </p> tags.

anyway, I am geting there slowly, If I take these out everything is together with no spacing, but at least it validates. not sure if it's because of the css tags, that this is not working properly, or should i set up the tag for a paragraph in the css file. same goes for the <ul> tag for lists however this seemed to clash with one of my css tags, so I removed the list tags, and it worked, not as a list but displayed the links across the page,

Paul


Grant Sewell wrote:

On Sat, 14 Jan 2006 21:33:41 +0000
Paul Sutton <zen14920@xxxxxxxxx> wrote:

Hi

if have a file called index.html and I want to call style.css, I just use style.css
what happens if the file is  /firstxv/first.html

how do I call the css file, as I need to reference it as being in the site root.

I was thinking of something like ../style.css

I am using matts template to see if I can make the prfc site any better, I want to keep all files for each section separate, so I am calling each html page from index by doing ./directory/file.html

I set up the first few then realised that doing this won't load the css file. I need to reference back a level, it took a while to figure out how to reference a directory up

thanks in advanced for any help.

Paul

If the css file is in the "root" of your www directory, then you can call it with "/style.css" from any 
subdirectory no matter how deep.  Personally I would avoid using relative links like "../somewhere" and use 
absolute paths *from* your root, like "/directory/subdir/file.ext".

Grant.

--
The Mailing List for the Devon & Cornwall LUG
Mail majordomo@xxxxxxxxxxxxx with "unsubscribe list" in the
message body to unsubscribe. FAQ: www.dcglug.org.uk/linux_adm/list-faq.html



--
The Mailing List for the Devon & Cornwall LUG
Mail majordomo@xxxxxxxxxxxxx with "unsubscribe list" in the
message body to unsubscribe. FAQ: www.dcglug.org.uk/linux_adm/list-faq.html