Hi, I’m trying to create a CSS based dropdown menu (suckerfish menu), and have kind of hit a road block when it comes to linking. Because I have my site set up with folders, I can’t see how I will be able to use the same html for each page and still have the links work correctly. Because I want to put the menu in a template which I will use on all the pages, but since the pages are all in different folders, the links will screw up.
Example!
index.html is not in a folder
Folder1 contains file1.html and file1a.html
Folder2 contains file2.html and file2a.html
etc.
When I want to link to file1.html, I could put in <a href=”file1.html”>. This will work fine if I am on page file1a.html or anywhere within Folder1. But if I am on page file2.html or anywhere NOT in folder1, I would have to put something like <a href=”../folder1/file1.html”> and then that won’t work if you are not in a folder, for example on the index page.
I had this problem back when I was using javascript for the menu, but solved it by creating a variable called baseHref which made all links absolute…but obviously I can’t do the same thing here. So would I actually have to have go through and type out the entire absolute links for every one in order for it to work?