This is quite hard to explain so I'll try and keep it simple.
How I've got my files structured is like this: I've got my Home, Downloads, Events, Links and Photos HTML files in the public_html folder. Now I'm in the process of adding a few photo galleries but want them to be links from the Photos.htm page. The html photo galleries are in public_html/gener8r/photogalleries. The links from the Photos page to the respective galleries work, however the stylesheets do not.
The CSS does work though if I put the particular photo galleries in the public_html folder.
This is in public_html and the CSS works [the gallery doesn't but that's another mission]
23rd September 2006
Hover pointer over thumbnails to see the enlarged version.
This however doesn't and is in public_html/gener8r/photogalleries.
April 21st 2007
If you need any more code, please say.
You just need to traverse
You just need to traverse back up through the directories until you are sitting at the same level as gener8r. you use the dotted notation to back up one level thus '../' or use an absolute reference from your root web document directory by prepending '/' to the path.
Moving this post to 'Off Topic' as it's not a CSS question.
so instead of
so instead of /gener8r/css/template.css I've put ../css/template.css
Thanks, seems simple now.
Yes but you didn't have
Yes but you didn't have /gener8r in the examlpes you had simply gener8r/ which would only work if you were already in the root directory.